You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A VM is running and the disk is migrated from cluster to zone wide primary storage. The root disk for that VM is now seen in all clusters and ACS tries to delete it. This fails, fortunately but only because it is in use. ACS should not try to delete the disk.
STEPS TO REPRODUCE
EXPECTED RESULTS
Migrate the root disk of a running VM from cluster-wide to zone wide storage.
It looks like this message
private void deleteUnregisteredVmFiles(VirtualMachineFileLayoutEx vmFileLayout, DatacenterMO dcMo, boolean deleteDisks) throws Exception { s_logger.debug("Deleting files associated with an existing VM that was unregistered");
// Since VM was successfully powered-on, if there was an existing VM in a different cluster that was unregistered, delete all the files associated with it.
if (existingVmName != null && existingVmFileLayout != null) {
// Since VM was successfully powered-on, if there was an existing VM in a different cluster that was unregistered, delete all the files associated with it.
if (existingVmName != null && existingVmFileLayout != null)
Cannot reproduce this, I'm running 2 storage pools (cluster and zone scoped) when migrating the volume to the zone one I cannot see in the its logs trying to delete it.
@PaulAngus is there any time period for this job to kick in, since I've been trying to do this on 4.11.3 4.9.3 and master and could not reproduce, I've replicated the exact storage circumstances and simply could not see such message in the logs. Env are running with root volume on zonewide storage pool for more than hour?
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
vSphere with zone-wide storage
OS / ENVIRONMENT
N/A
SUMMARY
Transferred from Jira :
https://issues.apache.org/jira/browse/CLOUDSTACK-9991
A VM is running and the disk is migrated from cluster to zone wide primary storage. The root disk for that VM is now seen in all clusters and ACS tries to delete it. This fails, fortunately but only because it is in use. ACS should not try to delete the disk.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
message seen:
Cannot delete file [Perf06_ix_stor_003] i-93-8549-VM/ROOT-8549-delta.vmdk
It looks like this message
private void deleteUnregisteredVmFiles(VirtualMachineFileLayoutEx vmFileLayout, DatacenterMO dcMo, boolean deleteDisks) throws Exception { s_logger.debug("Deleting files associated with an existing VM that was unregistered");
from here:
cloudstack/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
Lines 2712 to 2713 in a25b54c
because the start is reading this:
cloudstack/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
Lines 2073 to 2076 in a25b54c
// Since VM was successfully powered-on, if there was an existing VM in a different cluster that was unregistered, delete all the files associated with it.
if (existingVmName != null && existingVmFileLayout != null)
{ deleteUnregisteredVmFiles(existingVmFileLayout, dcMo, true); }
The text was updated successfully, but these errors were encountered: