venkata swamybabu budumuru created CLOUDSTACK-4401:
------------------------------------------------------
Summary: [UI] [KVM] RebootSystemVM operation should catch and
throw the error in UI if the hypervisor is not in "Up" State.
Key: CLOUDSTACK-4401
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4401
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: UI
Affects Versions: 4.2.0
Environment: commit id # 3c40e8bb3f6278f78c24c6317d513bd5ad599944
Reporter: venkata swamybabu budumuru
Priority: Minor
Fix For: 4.2.0
Steps to reproduce :
1. Have latest CloudStack setup with at least 1 advanced zone running with KVM
cluster (1 kvm host)
2. Make sure all the systemVMs are up and running
3. disable the KVM cluster
4. Unmanage the KVM cluster
5. Issue a rebootSystemVM command for SSVM
Observations:
i. It doesn't throw any error in the UI though the operation actually failed.
Here is the snippet from mgmt server logs
2013-08-19 18:53:14,151 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===START=== 10.252.192.25 -- GET
command=rebootSystemVm&id=c83b3a9f-e112-48c7-8794-4d78f7a52a0e&response=json&sessionkey=zJzyl0NdZA0QlMd8kSwWbynDxBI%3D&_=1376918608246
2013-08-19 18:53:14,169 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-9:null) submit async job-51 = [
7b0263df-a0aa-426a-8f14-dc2789d7fbef ], details: AsyncJobVO {id:51, userId: 2,
accountId: 2, sessionKey: null, instanceType: SystemVm, instanceId: 10, cmd:
org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd,
cmdOriginator: null, cmdInfo:
{"response":"json","id":"c83b3a9f-e112-48c7-8794-4d78f7a52a0e","sessionkey":"zJzyl0NdZA0QlMd8kSwWbynDxBI\u003d","cmdEventType":"SSVM.REBOOT","ctxUserId":"2","httpmethod":"GET","_":"1376918608246","ctxAccountId":"2","ctxStartEventId":"213"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 7280707764394,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-08-19 18:53:14,170 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===END=== 10.252.192.25 -- GET
command=rebootSystemVm&id=c83b3a9f-e112-48c7-8794-4d78f7a52a0e&response=json&sessionkey=zJzyl0NdZA0QlMd8kSwWbynDxBI%3D&_=1376918608246
2013-08-19 18:53:14,172 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-51:job-51 = [ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ]) Executing
org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd for job-51 =
[ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ]
2013-08-19 18:53:14,185 DEBUG [agent.manager.AgentManagerImpl]
(Job-Executor-51:job-51 = [ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ]) Can not
send command com.cloud.agent.api.RebootCommand due to Host 1 is not up
2013-08-19 18:53:14,185 DEBUG [storage.secondary.SecondaryStorageManagerImpl]
(Job-Executor-51:job-51 = [ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ]) Rebooting
Secondary Storage VM failed - s-10-VM
2013-08-19 18:53:14,189 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-6:null) SeqA 3-1289: Processing Seq 3-1289: { Cmd ,
MgmtId: -1, via: 3, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
\"connections\": []\n}","wait":0}}] }
2013-08-19 18:53:14,195 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-6:null) SeqA 3-1289: Sending Seq 3-1289: { Ans: ,
MgmtId: 7280707764394, via: 3, Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-08-19 18:53:14,232 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-51:job-51 = [ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ]) Complete
async job-51 = [ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ], jobStatus: 1,
resultCode: 0, result:
org.apache.cloudstack.api.response.SystemVmResponse@b5994b9
2013-08-19 18:53:14,236 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-51:job-51 = [ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ]) Done
executing org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd
for job-51 = [ 7b0263df-a0aa-426a-8f14-dc2789d7fbef ]
2013-08-19 18:53:15,440 DEBUG [cloud.server.StatsCollector]
(StatsCollector-2:null) VmStatsCollector is running...
Here is the snippet from firebug
_ 1376918608246
command rebootSystemVm
id c83b3a9f-e112-48c7-8794-4d78f7a52a0e
response json
sessionkey zJzyl0NdZA0QlMd8kSwWbynDxBI=
{ "rebootsystemvmresponse" : {"jobid":"7b0263df-a0aa-426a-8f14-dc2789d7fbef"} }
_ 1376918611503
command listZones
id 17b46f24-47fe-4346-be8d-800987ce5bb2
response json
sessionkey zJzyl0NdZA0QlMd8kSwWbynDxBI=
{ "listzonesresponse" : { "count":1 ,"zone" : [
{"id":"17b46f24-47fe-4346-be8d-800987ce5bb2","name":"zone1","dns1":"10.103.128.16","internaldns1":"10.103.128.16","guestcidraddress":"10.1.1.0/24","networktype":"Advanced","securitygroupsenabled":false,"allocationstate":"Enabled","zonetoken":"fbca910b-3b1c-392a-9978-0b254c862751","dhcpprovider":"VirtualRouter","localstorageenabled":false}
] } }
Attaching all the logs along with db dump to the bug.
--
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