Thanks Daan for your inputs. It looks like I don't have permissions to assign or change bug state. What should I do to get these?
Thanks, Mandar On Tue, Nov 26, 2013 at 2:25 PM, Daan Hoogland <daan.hoogl...@gmail.com>wrote: > H Mandar, > > You can contact the reporter directly but that would only be to ask to > verify in the newer version. This can be a hassle for small plants. So > you could put to resolved with the right fix-version. > > regards, > > > On Mon, Nov 25, 2013 at 9:00 AM, Mandar Barve <mandar.ba...@sungard.com> > wrote: > > Hi all, > > > > Problem: JIRA says list hosts API response didn't return CPU used > parameter > > value. This bug is reported against version 4.0.2. > > > > I could not reproduce this problem with CS version 4.2. > > > > I used CloudMonkey CLI to fire API commands to the management server. > With > > a basic zone created that has 1 pod, cluster and couple of system vms > > connected to the management server using CloudMonkey CLI sent the list > > hosts API command and the JSON response output could be captured in the > log > > file. JSON response and the CLI output shows "cpuused". The value seen > here > > could be matched against the portal reported host statistics value for > CPU > > used. > > > > CLI output: > > > >> list hosts > > count = 1 > > host: > > id = df4fe805-a320-4417-b8be-22dd0b86561e > > name = devcloud > > capabilities = xen-3.0-x86_32p , hvm > > clusterid = b3b80638-1fc5-4d13-aafc-28ff5155c681 > > clustername = test000 > > clustertype = CloudManaged > > cpuallocated = 0% > > cpunumber = 2 > > cpuspeed = 2486 > > *cpuused = 0.22%* > > cpuwithoverprovisioning = 4972.0 > > created = 2013-10-07T18:57:58+0530 > > disconnected = 2013-10-15T11:24:19+0530 > > events = PingTimeout; AgentConnected; HostDown; ShutdownRequested; > > AgentDisconnected; ManagementServerDown; Remove; Ping; > StartAgentRebalance > > hahost = False > > hypervisor = XenServer > > ipaddress = 192.168.56.10 > > islocalstorageactive = False > > lastpinged = 1970-01-16T20:20:29+0530 > > > > JSON response log: > > > > 2013-10-15 11:48:32,724 - requester.py:45 - [DEBUG] ======== START > Request > > ======== > > 2013-10-15 11:48:32,724 - requester.py:45 - [DEBUG] Requesting > > command=listHosts, args={} > > 2013-10-15 11:48:32,725 - requester.py:45 - [DEBUG] Request sent: > > > http://localhost:8080/client/api?apiKey=c9uPXphFfiQS5589hVp245hWrqcg1yxcVNg9h1xJES34j8uAtvKj0EP6h8jlSC5_VlajL1a2TaXuYFGoON0DMg&command=listHosts&response=json&signature=hKQ5hI0XFpAzNPJYJ7ivR53%2FzJU%3D > > 2013-10-15 11:48:32,820 - requester.py:45 - [DEBUG] Response received: { > > "listhostsresponse" : { "count":1 ,"host" : [ > > > > {"id":"df4fe805-a320-4417-b8be-22dd0b86561e","name":"devcloud","state":"Up","disconnected":"2013-10-15T11:24:19+0530","type":"Routing","ipaddress":"192.168.56.10","zoneid":"7b015b74-f00f-4216-b523-efc2e32c6bc5","zonename":"DevCloud0","podid":"c58e91d0-ad57-4d09-a485-f0decab857b4","podname":"test00","version":"4.2.0","hypervisor":"XenServer","cpunumber":2,"cpuspeed":2486,"cpuallocated":"0%", > > > *"cpuused":"0.22%"*,"cpuwithoverprovisioning":"4972.0","networkkbsread":57462,"networkkbswrite":38105,"memorytotal":2522221632,"memoryallocated":0,"memoryused":546428,"capabilities":"xen-3.0-x86_32p > > , > > > hvm","lastpinged":"1970-01-16T20:20:29+0530","managementserverid":8796750265493,"clusterid":"b3b80638-1fc5-4d13-aafc-28ff5155c681","clustername":"test000","clustertype":"CloudManaged","islocalstorageactive":false,"created":"2013-10-07T18:57:58+0530","events":"PingTimeout; > > AgentConnected; HostDown; ShutdownRequested; AgentDisconnected; > > ManagementServerDown; Remove; Ping; > > StartAgentRebalance","resourcestate":"Enabled","hahost":false} ] } } > > 2013-10-15 11:48:32,821 - requester.py:45 - [DEBUG] ======== END Request > > ======== > > > > Can this be closed? I have updated the JIRA with same comment. > > > > Thanks, > > Mandar > >