mirror of https://github.com/apache/cloudstack.git
server: Fix of delete of Ceph's snapshots from secondary storage (#5130)
This PR fixes the deletion will be handled by DefaultSnapshotStrategy::deleteSnapshot #4797
This commit is contained in:
parent
a4448b4409
commit
d82909318f
|
|
@ -64,10 +64,6 @@ public class CephSnapshotStrategy extends StorageSystemSnapshotStrategy {
|
|||
return StrategyPriority.HIGHEST;
|
||||
}
|
||||
|
||||
if (SnapshotOperation.DELETE.equals(op)) {
|
||||
return StrategyPriority.HIGHEST;
|
||||
}
|
||||
|
||||
return StrategyPriority.CANT_HANDLE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,8 +87,6 @@ public class CephSnapshotStrategyTest {
|
|||
StrategyPriority strategyPriority = cephSnapshotStrategy.canHandle(snapshot, snapshotOps[i]);
|
||||
if (snapshotOps[i] == SnapshotOperation.REVERT && isSnapshotStoredOnRbdStoragePool) {
|
||||
Assert.assertEquals(StrategyPriority.HIGHEST, strategyPriority);
|
||||
} else if (snapshotOps[i] == SnapshotOperation.DELETE && isSnapshotStoredOnRbdStoragePool) {
|
||||
Assert.assertEquals(StrategyPriority.HIGHEST, strategyPriority);
|
||||
} else {
|
||||
Assert.assertEquals(StrategyPriority.CANT_HANDLE, strategyPriority);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue