weizhouapache commented on issue #9180:
URL: https://github.com/apache/cloudstack/issues/9180#issuecomment-2162951870

   I am able to reproduce the issue by the following steps
   
    - register a deploy-as-is template
    - create a vm
    - create a datadisk and attach to the vm
    - create vm snapshot
    - stop the vm
    - start the vm, and got the same error
   
   note
   - on vcenter, it shows " Invalid configuration for device '0'. Cannot remove 
virtual disk from the virtual machine because it or one of its parent disks is 
part of a snapshot of the virtual machine."
   - vm can be started successfully in vcenter
   - vm can be started successfully in cloudstack, after removing the vm 
snapshot.
   
   it looks the issue is caused by
   
   
https://github.com/apache/cloudstack/blob/66f7f76263619c420f922444a1679d2f992c26ab/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java#L2835-L2838
   
   which is called by
   
   
https://github.com/apache/cloudstack/blob/66f7f76263619c420f922444a1679d2f992c26ab/plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java#L2204-L2207
   
   the code was introduced in #4307 , do you remember why added it and have any 
idea how to improve it ? cc @nvazquez 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to