cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daan Hoogland (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-9991) ACS tries to delete a root disk in zone wide primary storage
Date Tue, 11 Jul 2017 11:21:00 GMT
Daan Hoogland created CLOUDSTACK-9991:
-----------------------------------------

             Summary: ACS tries to delete a root disk in zone wide primary storage
                 Key: CLOUDSTACK-9991
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9991
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Storage Controller, VMware
    Affects Versions: 4.9.2.0
            Reporter: Paul Angus


A VM is running and the primary storage is (migrated from cluster to) zone wide. The root
disk for that VM is 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.

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: https://github.com/apache/cloudstack/blob/a25b54cf05704bcf074e67d5500d5d221235cc86/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java#L2712-L2713


because the start is reading this: https://github.com/apache/cloudstack/blob/a25b54cf05704bcf074e67d5500d5d221235cc86/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java#L2073-L2076


 // 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);
  }; 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message