[ https://issues.apache.org/jira/browse/CLOUDSTACK-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13862979#comment-13862979 ]
ASF subversion and git services commented on CLOUDSTACK-5472: ------------------------------------------------------------- Commit 91181a3b216357f09d69a50409ff0a505513239b in branch refs/heads/master from [~bharat.kumar] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=91181a3 ] CLOUDSTACK-5472 fixed the listvirtualmachines API to show cpu, memory and cpucores when using custom compute offering > 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)