[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716545#comment-13716545
 ] 

Sowmya Krishnan commented on CLOUDSTACK-3691:
---------------------------------------------

This is not a script issue. The VM failed to reboot since it's in stopped state 
because earlier deployments of the VM has failed due to resource unavailable.
Here's the logs corresponding to the reboot fail:

2013-07-21 04:34:40,378 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) 
===START===  10.223.240.194 -- GET  signature=S7uIyAqhQI1Sso%2BNTfM1VWjSoNA%3D&a
piKey=EAeUe5UfxySRHQjNziuGu6rQtJskYfy10aViYOnF1H1QIKwHf13W_jNn8Nwzz2DNwyr0sLAQKPOfTVBJ27dGgw&command=rebootVirtualMachine&id=ec812279-bceb-4d6b-9b8c-54320346
bc25&response=json
2013-07-21 04:34:40,398 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-131:job-935 = [ c81a393c-b20f-449b-99e5-ecbb046eb311 ]) Executing 
org.apache.cl
oudstack.api.command.user.vm.RebootVMCmd for job-935 = [ 
c81a393c-b20f-449b-99e5-ecbb046eb311 ]
2013-07-21 04:34:40,402 DEBUG [cloud.async.AsyncJobManagerImpl] 
(catalina-exec-12:null) submit async job-935 = [ 
c81a393c-b20f-449b-99e5-ecbb046eb311 ], deta
ils: AsyncJobVO {id:935, userId: 2, accountId: 2, sessionKey: null, 
instanceType: VirtualMachine, instanceId: 263, cmd: 
org.apache.cloudstack.api.command.use
r.vm.RebootVMCmd, cmdOriginator: null, cmdInfo: 
{"id":"ec812279-bceb-4d6b-9b8c-54320346bc25","response":"json","cmdEventType":"VM.REBOOT","ctxUserId":"2","ht
tpmethod":"GET","ctxAccountId":"2","ctxStartEventId":"3975","apiKey":"EAeUe5UfxySRHQjNziuGu6rQtJskYfy10aViYOnF1H1QIKwHf13W_jNn8Nwzz2DNwyr0sLAQKPOfTVBJ27dGgw"
,"signature":"S7uIyAqhQI1Sso+NTfM1VWjSoNA\u003d"}, cmdVersion: 0, callbackType: 
0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result:
 null, initMsid: 29066118877352, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2013-07-21 04:34:40,403 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) 
===END===  10.223.240.194 -- GET  signature=S7uIyAqhQI1Sso%2BNTfM1VWjSoNA%3D&api
Key=EAeUe5UfxySRHQjNziuGu6rQtJskYfy10aViYOnF1H1QIKwHf13W_jNn8Nwzz2DNwyr0sLAQKPOfTVBJ27dGgw&command=rebootVirtualMachine&id=ec812279-bceb-4d6b-9b8c-54320346bc
25&response=json
2013-07-21 04:34:40,407 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
===START===  10.223.240.194 -- GET  signature=UABUpZJ%2BTS2azvhAr3kVY8saEdI%3D&a
piKey=EAeUe5UfxySRHQjNziuGu6rQtJskYfy10aViYOnF1H1QIKwHf13W_jNn8Nwzz2DNwyr0sLAQKPOfTVBJ27dGgw&command=queryAsyncJobResult&response=json&jobid=c81a393c-b20f-44
9b-99e5-ecbb046eb311
2013-07-21 04:34:40,424 ERROR [cloud.vm.UserVmManagerImpl] 
(Job-Executor-131:job-935 = [ c81a393c-b20f-449b-99e5-ecbb046eb311 ]) Vm id=263 
is not in Running
state, failed to reboot


I'll close this for now, if a script issue surfaces, please open another bug.
                
> 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

Reply via email to