meysamfarazmand opened a new issue #3749: Calling scaleVirtualMachine fails due 
to incorrect power state examination.
URL: https://github.com/apache/cloudstack/issues/3749
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master 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.
   -->
   ~~~
   CloudStack Manager
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.13.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   vCenter 5.5
   CloudStack 4.13 on CentOS 6
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Calling scaleVirtualMachine fails due to incorrect power state examination.
   
   ##### STEPS TO REPRODUCE
   <!--
   For new features, show how the feature would be used.
   -->
   1- Shutdown VM.
   2- Wait until shutdown has been completed.
   3- Immediately downgrade VM with scaleVirtualMachine API call.
   4- Start VM
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
apiKey=vNacmEAZP1kZluwMvwur2UtXWDDaTmj_qw6r7ZPYCzo85RQcsgIZkCvAnZAeCLN3hfJCnKcGutECQREJyu7pig&command=scaleVirtualMachine&details[0].cpuNumber=2&details[0].cpuSpeed=1000&details[0].memory=2048&id=aa8c9928-4269-49fc-9d43-01f84e66e920&response=json&serviceofferingid=188a8d30-ac07-4093-9435-d2eaa4d20776&signature=vaP7uhJ8jsU45eGd61P3eGENqII%3D
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   scale virtual machine without failing related job.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   Job fails due to incorrect power state
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   2019-12-07 10:18:47,324 ERROR [c.c.s.VolumeApiServiceImpl] 
(API-Job-Executor-25:ctx-40931858 job-91715 ctx-f6746e26) (logid:cfce0759)  For 
ROOT volume resize VM should be in Power Off state.
   ~~~
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to