[ https://issues.apache.org/jira/browse/CLOUDSTACK-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13859864#comment-13859864 ]
prashant kumar mishra commented on CLOUDSTACK-5472: --------------------------------------------------- saw similar issue with scaleVMCmd response:Resolving above should solve the problem ==================================== Logs: ------ [root@localhost ~]# cat /var/log/cloudstack/management/management-server.log |grep job-33 2014-01-01 11:30:33,835 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-5:ctx-e421bde7 ctx-d73af7e9) submit async job-33, details: AsyncJobVO {id:33, userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.vm.ScaleVMCmd, cmdInfo: {"serviceofferingid":"044b7a15-f9aa-42d2-a1ee-3821f82ba1e9","sessionkey":"oD9mZUVskgfKaloWHlv3GoUdbfU\u003d","cmdEventType":"VM.UPGRADE","ctxUserId":"2","customparameters[0].memory":"1024","httpmethod":"GET","id":"3701ab49-a39a-464d-8cee-89fd4f6e68f5","response":"json","customparameters[0].cpuSpeed":"200","customparameters[0].cpuNumber":"1","_":"1388574469923","ctxAccountId":"2","ctxStartEventId":"97"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 7484181839895, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2014-01-01 11:30:33,839 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-22:ctx-3f997354) Add job-33 into job monitoring 2014-01-01 11:30:34,289 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-22:ctx-3f997354 ctx-d73af7e9) Complete async job-33, jobStatus: SUCCEEDED, resultCode: 0, result: org.apache.cloudstack.api.response.UserVmResponse/virtualmachine/{"id":"3701ab49-a39a-464d-8cee-89fd4f6e68f5","name":"one","displayname":"one","account":"admin","domainid":"4d65da54-7226-11e3-8e5c-06ce8c000017","domain":"ROOT","created":"2013-12-31T10:35:34-0500","state":"Stopped","haenable":false,"zoneid":"2ae47aea-0db4-4a84-b088-63004d2eb4be","zonename":"z1","templateid":"4d711ff4-7226-11e3-8e5c-06ce8c000017","templatename":"CentOS 5.6(64-bit) no GUI (XenServer)","templatedisplaytext":"CentOS 5.6(64-bit) no GUI (XenServer)","passwordenabled":false,"serviceofferingid":"044b7a15-f9aa-42d2-a1ee-3821f82ba1e9","serviceofferingname":"dnm","cpunumber":0,"cpuspeed":0,"memory":0,"cpuused":"0%","networkkbsread":61,"networkkbswrite":0,"diskkbsread":0,"diskkbswrite":0,"diskioread":0,"diskiowrite":0,"guestosid":"4d846b90-7226-11e3-8e5c-06ce8c000017","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[{"id":"9360e580-7226-11e3-8e5c-06ce8c000017","name":"default","description":"Default Security Group","account":"admin","ingressrule":[],"egressrule":[],"tags":[]}],"nic":[{"id":"f01af7be-47ad-4e8a-bfac-1b4bc2bc1049","networkid":"cdd0106d-c5ba-4d24-8fa2-0e4046ef4a02","networkname":"defaultGuestNetwork","netmask":"255.255.254.0","gateway":"10.147.40.1","ipaddress":"10.147.41.222","isolationuri":"ec2://untagged","broadcasturi":"vlan://untagged","traffictype":"Guest","type":"Shared","isdefault":true,"macaddress":"06:b1:80:00:00:0d"}],"hypervisor":"XenServer","instancename":"i-2-3-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":true} 2014-01-01 11:30:34,309 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-22:ctx-3f997354) Done executing org.apache.cloudstack.api.command.user.vm.ScaleVMCmd for job-33 2014-01-01 11:30:34,316 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-22:ctx-3f997354) Remove job-33 from job monitoring > UI shows incorrect vm statistics if vm deployed with dynamic compute offering > ------------------------------------------------------------------------------ > > Key: CLOUDSTACK-5472 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5472 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: API > Reporter: prashant kumar mishra > Assignee: Bharat Kumar > Attachments: Logs_db.rar, screenshot-1.jpg > > > Steps to repro > -------------------- > 1-prepare CS setup with xen6.2 > 2-create a dynamic SO d1 > 3-deploy a vm with d1 > 4-check vm statistics in UI > Actual > -------- > vm statistics shows Total cpu=0 > My observation > -------------------- > API response shows cpunumber":0,"cpuspeed":0,"memory":0,"cpuused":"0% which > is incorrect. > Details > ====== > API > ----- > http://10.147.38.177:8080/client/api?command=listVirtualMachines&details=stats&id=352a9b66-4539-4117-9cea-ca9dd5da00fa&response=json&sessionkey=51sujrtdCbNbXHU3LotE2wx6UMk%3D&_=1386828570170 > API Response > ----------------- > { "listvirtualmachinesresponse" : { "count":1 ,"virtualmachine" : [ > {"id":"352a9b66-4539-4117-9cea-ca9dd5da00fa","name":"last","displayname":"last","account":"admin","domainid":"45b3c110-6261-11e3-87cf-06544800003b","domain":"ROOT","created":"2013-12-12T06:24:40-0500","state":"Running","haenable":false,"zoneid":"cb7aee87-73fb-4da4-a384-2e209b132c95","zonename":"z1","hostid":"d46817a4-5e4a-4701-b3ba-188cafcb66db","hostname":"Rack1Pod1Host7","cpunumber":0,"cpuspeed":0,"memory":0,"cpuused":"0%","networkkbsread":1,"networkkbswrite":1,"diskkbsread":0,"diskkbswrite":0,"diskioread":0,"diskiowrite":0,"guestosid":"45d3b830-6261-11e3-87cf-06544800003b","securitygroup":[],"nic":[{"id":"0786bc57-2423-4e07-8925-5f6dfac5f962","networkid":"5967fab2-8ca9-415e-b78d-114851a1d072","networkname":"new","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.144","isolationuri":"vlan://1103","broadcasturi":"vlan://1103","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:09:23:00:05"}],"hypervisor":"XenServer","instancename":"i-2-13-VM","tags":[],"affinitygroup":[],"displayvm":true,"isdynamicallyscalable":true} > ] } } -- This message was sent by Atlassian JIRA (v6.1.5#6160)