Skip to content

Commit b493d8f

Browse files
committed
Reconcile: update volume state to Destroy before expunging it
1 parent 7737be0 commit b493d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,6 +2188,7 @@ public void copyAsync(Map<VolumeInfo, DataStore> volumeDataStoreMap, VirtualMach
21882188
for (VolumeInfo destVolumeInfo : srcVolumeInfoToDestVolumeInfo.values()) {
21892189
logger.info(String.format("Expunging dest volume [id: %s, state: %s] as part of failed VM migration with volumes command for VM [%s].", destVolumeInfo.getId(), destVolumeInfo.getState(), vmTO.getId()));
21902190
destVolumeInfo.processEvent(Event.OperationFailed);
2191+
destVolumeInfo.processEvent(Event.DestroyRequested);
21912192
_volumeService.expungeVolumeAsync(destVolumeInfo);
21922193
}
21932194
}

0 commit comments

Comments
 (0)