Skip to content

Commit 5aad7cc

Browse files
author
Marcus Sorensen
committed
Summary: Pull patch from 4.0 that skips deleting patchVbd when systemvms are
stopped Detail: This patch fixed an issue with hosts trying to stop system vms that were already not running and deleting a patch disk for the system vm running on another host. It got applied to 4.0 but not master. Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1354222160 -0700
1 parent a28f4ca commit 5aad7cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,13 +2651,14 @@ protected Answer execute(StopCommand cmd) {
26512651
if (disk.getDeviceType() == DiskDef.deviceType.CDROM
26522652
&& disk.getDiskPath() != null) {
26532653
cleanupDisk(conn, disk);
2654-
} else if (disk.getDiskPath() != null
2654+
} /* The clean up of patch disks should probably be done in expunge
2655+
else if (disk.getDiskPath() != null
26552656
&& disk.getDiskPath().contains(vmName + "-patchdisk")
26562657
&& vmName.matches("^[rsv]-\\d+-VM$")) {
26572658
if (!_storagePoolMgr.deleteVbdByPath(disk.getDiskPath())) {
26582659
s_logger.warn("failed to delete patch disk " + disk.getDiskPath());
26592660
}
2660-
}
2661+
}*/
26612662
}
26622663
for (InterfaceDef iface: ifaces) {
26632664
_vifDriver.unplug(iface);

0 commit comments

Comments
 (0)