mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
engine-orchestration: expunge destroyed system vm volume (#9197)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
2fef0a32bc
commit
abbc61c01e
@ -1186,7 +1186,8 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati
|
||||
s_logger.error(String.format("Unable to destroy existing volume [%s] due to [%s].", volumeToString, e.getMessage()));
|
||||
}
|
||||
// In case of VMware VM will continue to use the old root disk until expunged, so force expunge old root disk
|
||||
if (vm.getHypervisorType() == HypervisorType.VMware) {
|
||||
// For system VM we do not need volume entry in Destroy state
|
||||
if (vm.getHypervisorType() == HypervisorType.VMware || vm.getType().isUsedBySystem()) {
|
||||
s_logger.info(String.format("Trying to expunge volume [%s] from primary data storage.", volumeToString));
|
||||
AsyncCallFuture<VolumeApiResult> future = volService.expungeVolumeAsync(volFactory.getVolume(existingVolume.getId()));
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user