rajujith opened a new issue, #9180:
URL: https://github.com/apache/cloudstack/issues/9180

   <!--
   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
    
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Template, VMware
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.19
   ~~~
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Instance deployed from deplo-as-is template. VMware vSphere 8.0 
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   While starting an instance created from deploy-as-is template cloudstack 
tries to tear down the data disks. Since the instance has data volumes attached 
before the instance snapshot vCenter declines the teardown. This design issue 
results in failure to start an instance having data volumes and instance 
snapshots. 
   
   ```
   2024-06-05 12:16:40,023 INFO  [c.c.h.v.r.VmwareResource] 
(DirectAgent-101:ctx-79cfdac2 10.1.32.212, job-38/job-40, cmd: StartCommand) 
(logid:8e044e50) Tearing down datadisks for deploy-as-is VM
   2024-06-05 12:16:40,121 ERROR [c.c.h.v.r.VmwareResource] 
(DirectAgent-101:ctx-79cfdac2 10.1.32.212, job-38/job-40, cmd: StartCommand) 
(logid:8e044e50) Error mapping deploy-as-is VM disks from cloned VM i-2-3-VM
   java.lang.RuntimeException: Invalid configuration for device '0'.
           at 
com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:426)
   ```
   
   ##### 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. Deploy an instance from a deploy-as-is template with a data volume( Read 
Instance settings from OVA selected for template).
   2. Create an instance snapshot
   3. Stop and then start the instance.
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   The user should be able to perform stop-and-start operations on instances 
deployed from deploy-as-is template types having data disks and instance 
snapshots. 
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   The user is unable to stop and start the instance. 
   ~~~
   


-- 
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