You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/08/01 06:52:52 UTC

[GitHub] [cloudstack] harikrishna-patnala opened a new issue, #6595: VMware VM snapshot failure in case of storage pool type datastore cluster

harikrishna-patnala opened a new issue, #6595:
URL: https://github.com/apache/cloudstack/issues/6595

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    * Improvement Request
    * Enhancement Request
    * Feature Idea
    * Documentation Report
    * Other
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   VMware, VMsnapshot, Datastore Cluster
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.15.0 and above
   ~~~
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   VM snapshot is failing on a few VMs for which disks are created in a storage pool of type “Datastore Cluster“ in VMware.
   The issue is happening in a specific case as mentioned below in the reproduction steps.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   1. Create a CloudStack environment with a storage pool of type “Datastore Cluster“ (Assume Datastore cluster has two child pools in it “pool A“ and “pool B“) and make sure DRS is enabled on the datastore cluster on vCenter.
   2. Create a VM with a root disk and a data disk.
   3. Create a scenario where both root and data disks are created in same child storage pool in datastore cluster, say “pool A“
   4. Let the DRS trigger on vCenter and moved the data disk from “pool A“ to “pool B“
   5. Now perform VM snapshot operation from CloudStack which will fail with the below error.
   
   ```
   2022-08-01 06:14:46,623 DEBUG [c.c.v.s.VMSnapshotManagerImpl] (Work-Job-Executor-6:ctx-844c99dc job-73/job-74 ctx-5482d2e8) (logid:df1e2c15) Failed to create vm snapshot: 6
   com.cloud.utils.exception.CloudRuntimeException: Creating VM snapshot: i-2-5-VM_VS_20220801061435 failed due to File [783bcfa34486393f8b597e3af109a56b] i-2-5-VM was not found
   
   ``` 
   
   Summary: The issue is happening when the CloudStack’s database has the details for two volumes pool_id and chain_info pointing to the same child storage pool but on vCenter, they are in different child storage pools. In other cases, even though DRS moved the volumes around, CloudStack can still take VM snapshot.
   
   Workaround: Stop and start the VM. CloudStack will reconcile the volumes of information during that process.
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   VM snapshot should be successful and CloudStack should update the new volumes information
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   VM snapshot operation is failing in the specific case as mentioned above in reproduction steps
   ~~~
   


-- 
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: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] shwstppr commented on issue #6595: VMware VM snapshot failure in case of storage pool type datastore cluster

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #6595:
URL: https://github.com/apache/cloudstack/issues/6595#issuecomment-1232760587

   Fixed with #6643 


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] shwstppr closed issue #6595: VMware VM snapshot failure in case of storage pool type datastore cluster

Posted by GitBox <gi...@apache.org>.
shwstppr closed issue #6595: VMware VM snapshot failure in case of storage pool type datastore cluster
URL: https://github.com/apache/cloudstack/issues/6595


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org