prashant kumar mishra created CLOUDSTACK-4036:
-------------------------------------------------
Summary: UI remains in procesing state and queryAsyncJobResult
geting called repeatedly for scaleSystemVm
Key: CLOUDSTACK-4036
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4036
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Affects Versions: 4.2.0
Reporter: prashant kumar mishra
Fix For: 4.2.0
Steps to reproduce
==============
1-preapre a CS setup with esxi5.1
2-create a SO for ssvm
3-try scale up ssvm
Expected
--------------
UI should not be in processing state for forever
Actual
---------
UI remains in processing state and queryAsyncJobResult is getting called
multiple times
API
=======
http://10.147.38.253:8080/client/api?command=scaleSystemVm&id=f367a159-9a44-4e52-b0ca-3f42927b94bb&serviceofferingid=c879cb15-9891-49e6-8c62-3adedbff9f81&response=json&sessionkey=W7FeVMt%2FzpGgr2yIMdyMSmmkuaY%3D&_=1375431841965
http://10.147.38.253:8080/client/api?command=queryAsyncJobResult&jobId=93104d35-1437-4112-afc2-e0904ed913e8&response=json&sessionkey=W7FeVMt%2FzpGgr2yIMdyMSmmkuaY%3D&_=1375431845734
{ "queryasyncjobresultresponse" :
{"accountid":"c1428ce0-fb63-11e2-8004-0618b0000087","userid":"c1435a12-fb63-11e2-8004-0618b0000087","cmd":"org.apache.cloudstack.api.command.admin.systemvm.ScaleSystemVMCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"systemvm":{"id":"f367a159-9a44-4e52-b0ca-3f42927b94bb","systemvmtype":"consoleproxy","zoneid":"8ec4457d-0189-4786-8388-aa53df790ae8","zonename":"zn2","dns1":"10.103.128.16","gateway":"10.147.55.1","name":"v-2-VM","podid":"18ee774e-efa2-44d0-a689-f056d11c0d7a","linklocalmacaddress":"02:00:6d:e0:00:02","publicip":"10.147.55.41","publicmacaddress":"06:42:0a:00:00:0c","publicnetmask":"255.255.255.0","templateid":"876e972a-fb63-11e2-8004-0618b0000087","created":"2013-08-02T17:07:06+0530","state":"Stopped","activeviewersessions":0}},"created":"2013-08-02T19:18:37+0530","jobid":"93104d35-1437-4112-afc2-e0904ed913e8"}
}
2nd cycle
http://10.147.38.253:8080/client/api?command=queryAsyncJobResult&jobId=93104d35-1437-4112-afc2-e0904ed913e8&response=json&sessionkey=W7FeVMt%2FzpGgr2yIMdyMSmmkuaY%3D&_=1375431849164
{ "queryasyncjobresultresponse" :
{"accountid":"c1428ce0-fb63-11e2-8004-0618b0000087","userid":"c1435a12-fb63-11e2-8004-0618b0000087","cmd":"org.apache.cloudstack.api.command.admin.systemvm.ScaleSystemVMCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"systemvm":{"id":"f367a159-9a44-4e52-b0ca-3f42927b94bb","systemvmtype":"consoleproxy","zoneid":"8ec4457d-0189-4786-8388-aa53df790ae8","zonename":"zn2","dns1":"10.103.128.16","gateway":"10.147.55.1","name":"v-2-VM","podid":"18ee774e-efa2-44d0-a689-f056d11c0d7a","linklocalmacaddress":"02:00:6d:e0:00:02","publicip":"10.147.55.41","publicmacaddress":"06:42:0a:00:00:0c","publicnetmask":"255.255.255.0","templateid":"876e972a-fb63-11e2-8004-0618b0000087","created":"2013-08-02T17:07:06+0530","state":"Stopped","activeviewersessions":0}},"created":"2013-08-02T19:18:37+0530","jobid":"93104d35-1437-4112-afc2-e0904ed913e8"}
}
my obs
======
status of job is not getting changed even operation went successful
->jobprocstatus":0,"jobresultcode":0
--
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