[
https://issues.apache.org/jira/browse/CLOUDSTACK-3691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716582#comment-13716582
]
Sowmya Krishnan commented on CLOUDSTACK-3691:
---------------------------------------------
Not really.. We cannot reboot a stopped VM, only Start it. The VM went into
stopped state earlier since we didnt have enough resources to deploy the VM
What we could do is to make the test case better handle this scenario and give
an appropriate error message. But that can be a separate enhancement ticket for
the script.
> Test case "test_netscaler_lb.TestVmWithLb.test_05_reboot_user_vm" failed
> reboot vm in KVM
> -----------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3691
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3691
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Affects Versions: 4.2.0
> Environment: Automation
> KVM with netscaler
> Reporter: Rayees Namathponnan
> Assignee: Sowmya Krishnan
> Fix For: 4.2.0
>
> Attachments: MSlog.rar
>
>
> Test cases
> integration.component.test_netscaler_lb.TestVmWithLb.test_05_reboot_user_vm
> failed in kvm with netscaler advanced zone,
> Error Message
> Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext :
> u'Failed to reboot vm instance'}
> -------------------- >> begin captured logging << --------------------
> testclient.testcase.TestVmWithLb: DEBUG: Rebooting VM instance:
> ec812279-bceb-4d6b-9b8c-54320346bc25
> --------------------- >> end captured logging << ---------------------
> Stacktrace
> File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run
> testMethod()
> File
> "/Repo_30X/ipcl/cloudstack/test/integration/component/test_netscaler_lb.py",
> line 2757, in test_05_reboot_user_vm
> self.vm_2.reboot(self.apiclient)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/integration/lib/base.py", line
> 425, in reboot
> apiclient.rebootVirtualMachine(cmd)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 624, in rebootVirtualMachine
> response = self.connection.marvin_request(command,
> response_type=response, method=method)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line
> 230, in marvin_request
> response = self.poll(asyncJobId, response_type)
> File
> "/usr/local/lib/python2.7/site-packages/marvin/cloudstackConnection.py", line
> 91, in poll
> "asyncquery", asyncResonse.jobresult)
> Execute cmd: asyncquery failed, due to: {errorcode : 530, errortext :
> u'Failed to reboot vm instance'}
> -------------------- >> begin captured logging << --------------------
> testclient.testcase.TestVmWithLb: DEBUG: Rebooting VM instance:
> ec812279-bceb-4d6b-9b8c-54320346bc25
> --------------------- >> end captured logging << ---------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira