cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sailaja Mada (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-2375) Difference with listVirtualMachince response (VMware vs Xenserver)
Date Wed, 08 May 2013 06:21:20 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-2375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13651652#comment-13651652
] 

Sailaja Mada commented on CLOUDSTACK-2375:
------------------------------------------

Impact 1 : 

VMware Instance statistics are displayed as undefined as they use the call with filter as
details=stats with listvirtualmachines API call which does not have cpu number and speed parameters
in the response .  With Xenserver API call used is listVirtualmachines only which gives the
details for CPU and speed.

Attached the snap. 
                
> Difference with listVirtualMachince response  (VMware vs Xenserver)
> -------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2375
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2375
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.2.0
>            Reporter: Sailaja Mada
>         Attachments: vmware-cloud-backup.dmp, xen-cloud-backup.dmp
>
>
> Steps :
>  
> Try to compare listVirtualMachince API response with Xen & VMWare server . 
>  
> Observations :
>  
> Xenserver :
>  
> 1.	When looking for details=stats - With http://localhost08:8080/client/api?command=listVirtualMachines&details=stats&id=d2cb65e2-f9a7-4286-9022-48c7e1f563a6.
 I get a response which includes NIC details + Stats . But it does not include cpunumber &
cpuspeed
>  
> 2013-05-06 18:14:22,144 INFO  [cloud.api.ApiServer] (catalina-exec-10:null) (userId=2
accountId=2 sessionId=60F3952BE82D925AFC945F802B9871EB) 10.144.6.19 -- GET command=listVirtualMachines&details=stats&id=d2cb65e2-f9a7-4286-9022-48c7e1f563a6&sessionkey=r%2B1hTI2qMW1GbepeBSyXIt9%2F87s%3D&_=1367842110435
200 <?xml version="1.0" encoding="UTF-8"?><listvirtualmachinesresponse cloud-stack-version="4.2.0-SNAPSHOT"><count>1</count><virtualmachine><id>d2cb65e2-f9a7-4286-9022-48c7e1f563a6</id><name>d2cb65e2-f9a7-4286-9022-48c7e1f563a6</name><account>ccdc1admin1</account><domainid>4e45b81f-58e1-40b3-8feb-bdfd00e30551</domainid><domain>ccdc1</domain><created>2013-05-06T10:31:28+0530</created><state>Running</state><haenable>false</haenable><zoneid>30cab8cc-1048-4c39-9a3a-cce16717f7e7</zoneid><zonename>advzone1</zonename><zonetype>Advanced</zonetype><hostid>8e9c9ba0-e12d-475b-949a-00695d947ec2</hostid><hostname>xen13.cloud.com</hostname><cpuused>0.01%</cpuused><networkkbsread>7</networkkbsread><networkkbswrite>11</networkkbswrite><guestosid>1d1f9368-b321-11e2-9f52-ca27ffbee488</guestosid><nic><id>4789ddc1-3a5c-42e3-8e11-8b60e339ce37</id><networkid>06376f41-f0bd-4f49-8647-76781830c5e7</networkid><networkname>c</networkname><netmask>255.255.255.0</netmask><gateway>10.1.1.1</gateway><ipaddress>10.1.1.100</ipaddress><isolationuri>vlan://802</isolationuri><broadcasturi>vlan://802</broadcasturi><traffictype>Guest</traffictype><type>Isolated</type><isdefault>true</isdefault><macaddress>02:00:23:08:00:01</macaddress></nic><hypervisor>XenServer</hypervisor><instancename>i-4-15-VM</instancename></virtualmachine></listvirtualmachinesresponse>
>  
> 2.	With listVirtualMachinces without details then I get response including all the details
:
>  
> 2013-05-06 18:17:22,811 INFO  [cloud.api.ApiServer] (catalina-exec-22:null) (userId=2
accountId=2 sessionId=60F3952BE82D925AFC945F802B9871EB) 10.144.6.19 -- GET command=listVirtualMachines&id=d2cb65e2-f9a7-4286-9022-48c7e1f563a6&sessionkey=r%2B1hTI2qMW1GbepeBSyXIt9%2F87s%3D&_=1367842110435
200 <?xml version="1.0" encoding="UTF-8"?><listvirtualmachinesresponse cloud-stack-version="4.2.0-SNAPSHOT"><count>1</count><virtualmachine><id>d2cb65e2-f9a7-4286-9022-48c7e1f563a6</id><name>d2cb65e2-f9a7-4286-9022-48c7e1f563a6</name><account>ccdc1admin1</account><domainid>4e45b81f-58e1-40b3-8feb-bdfd00e30551</domainid><domain>ccdc1</domain><created>2013-05-06T10:31:28+0530</created><state>Running</state><haenable>false</haenable><zoneid>30cab8cc-1048-4c39-9a3a-cce16717f7e7</zoneid><zonename>advzone1</zonename><zonetype>Advanced</zonetype><hostid>8e9c9ba0-e12d-475b-949a-00695d947ec2</hostid><hostname>xen13.cloud.com</hostname><templateid>1cfb01ba-b321-11e2-9f52-ca27ffbee488</templateid><templatename>CentOS
5.6(64-bit) no GUI (XenServer)</templatename><templatedisplaytext>CentOS 5.6(64-bit)
no GUI (XenServer)</templatedisplaytext><passwordenabled>false</passwordenabled><serviceofferingid>416113da-1939-4be7-ae03-50b757d56459</serviceofferingid><serviceofferingname>Small
Instance</serviceofferingname><cpunumber>1</cpunumber><cpuspeed>500</cpuspeed><memory>512</memory><cpuused>0%</cpuused><networkkbsread>7</networkkbsread><networkkbswrite>11</networkkbswrite><guestosid>1d1f9368-b321-11e2-9f52-ca27ffbee488</guestosid><rootdeviceid>0</rootdeviceid><rootdevicetype>ROOT</rootdevicetype><nic><id>4789ddc1-3a5c-42e3-8e11-8b60e339ce37</id><networkid>06376f41-f0bd-4f49-8647-76781830c5e7</networkid><networkname>c</networkname><netmask>255.255.255.0</netmask><gateway>10.1.1.1</gateway><ipaddress>10.1.1.100</ipaddress><isolationuri>vlan://802</isolationuri><broadcasturi>vlan://802</broadcasturi><traffictype>Guest</traffictype><type>Isolated</type><isdefault>true</isdefault><macaddress>02:00:23:08:00:01</macaddress></nic><hypervisor>XenServer</hypervisor><instancename>i-4-15-VM</instancename></virtualmachine></listvirtualmachinesresponse>
>  
> VMWARE :
>  
> 1.	When looking for details=stats - With http://localhost08:8080/client/api?command=listVirtualMachines&details=stats&id=d2cb65e2-f9a7-4286-9022-48c7e1f563a6
. .  I get a response without NIC details + Stats . But it does not include cpunumber &
cpuspeed
>  
> 2013-05-06 23:48:03,046 INFO  [cloud.api.ApiServer] (catalina-exec-9:null) (userId=2
accountId=2 sessionId=12D293F2D0F929AA2F43B56C3FC7EF10) 10.144.6.19 -- GET command=listVirtualMachines&details=stats&id=b5cbd238-7be9-4afd-8ad4-4b7fe8f9993e&response=json&sessionkey=HblN7XwG5GWAkxpWhMERVD%2Fveb0%3D&_=1367844714480
200 { "listvirtualmachinesresponse" : { "count":1 ,"virtualmachine" : [  {"id":"b5cbd238-7be9-4afd-8ad4-4b7fe8f9993e","name":"b5cbd238-7be9-4afd-8ad4-4b7fe8f9993e","account":"admin","domainid":"98b01dbe-b640-11e2-ba21-0618b0000087","domain":"ROOT","created":"2013-05-06T20:12:23+0530","state":"Running","haenable":false,"zoneid":"58e1ce4d-fb5c-48c4-948f-408c969deae0","zonename":"Z1","zonetype":"Advanced","hostid":"faf62939-d75f-4f80-aa30-90f924446f03","hostname":"10.147.40.9","cpuused":"23%","networkkbsread":0,"networkkbswrite":0,"guestosid":"98c7ab82-b640-11e2-ba21-0618b0000087","securitygroup":[],"nic":[],"hypervisor":"VMware","instancename":"i-2-3-VM","tags":[],"affinitygroup":[]}
] } }
>  
> 2.	With listVirtualMachinces without details then I get response including all the details
:
>  
> 2013-05-06 23:50:38,471 INFO  [cloud.api.ApiServer] (catalina-exec-20:null) (userId=2
accountId=2 sessionId=12D293F2D0F929AA2F43B56C3FC7EF10) 10.144.6.19 -- GET command=listVirtualMachines&id=b5cbd238-7be9-4afd-8ad4-4b7fe8f9993e&sessionkey=HblN7XwG5GWAkxpWhMERVD%2Fveb0%3D&_=1367842024925
200 <?xml version="1.0" encoding="UTF-8"?><listvirtualmachinesresponse cloud-stack-version="4.2.0-SNAPSHOT"><count>1</count><virtualmachine><id>b5cbd238-7be9-4afd-8ad4-4b7fe8f9993e</id><name>b5cbd238-7be9-4afd-8ad4-4b7fe8f9993e</name><account>admin</account><domainid>98b01dbe-b640-11e2-ba21-0618b0000087</domainid><domain>ROOT</domain><created>2013-05-06T20:12:23+0530</created><state>Running</state><haenable>false</haenable><zoneid>58e1ce4d-fb5c-48c4-948f-408c969deae0</zoneid><zonename>Z1</zonename><zonetype>Advanced</zonetype><hostid>faf62939-d75f-4f80-aa30-90f924446f03</hostid><hostname>10.147.40.9</hostname><templateid>98b84d18-b640-11e2-ba21-0618b0000087</templateid><templatename>CentOS
5.3(64-bit) no GUI (vSphere)</templatename><templatedisplaytext>CentOS 5.3(64-bit)
no GUI (vSphere)</templatedisplaytext><passwordenabled>false</passwordenabled><serviceofferingid>3fcdd3a3-aaa3-44f5-b304-59837b7118be</serviceofferingid><serviceofferingname>Small
Instance</serviceofferingname><cpunumber>1</cpunumber><cpuspeed>500</cpuspeed><memory>512</memory><cpuused>23%</cpuused><networkkbsread>0</networkkbsread><networkkbswrite>0</networkkbswrite><guestosid>98c7ab82-b640-11e2-ba21-0618b0000087</guestosid><rootdeviceid>0</rootdeviceid><rootdevicetype>ROOT</rootdevicetype><nic><id>9c35e29a-dbf7-43af-adf1-a723bc720226</id><networkid>da919ef2-690f-4902-9712-964ef5368c92</networkid><networkname>adminw1</networkname><netmask>255.255.255.0</netmask><gateway>10.1.1.1</gateway><ipaddress>10.1.1.112</ipaddress><isolationuri>vlan://923</isolationuri><broadcasturi>vlan://923</broadcasturi><traffictype>Guest</traffictype><type>Isolated</type><isdefault>true</isdefault><macaddress>02:00:16:7d:00:01</macaddress></nic><hypervisor>VMware</hypervisor><instancename>i-2-3-VM</instancename></virtualmachine></listvirtualmachinesresponse>
> Attached DB dumps

--
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

Mime
View raw message