You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Sailaja Mada <sa...@citrix.com> on 2013/04/30 10:06:55 UTC

[ACS42]Clarifications regarding VM Scaleup

Hi,


1)      When I tried scaleVirtualMachine API  to scale to Medium offering from small I get the response as Sync request.

But Its calling an query AsyncJob with undefined as the jobId after sclaeup. Why ?

API log :

2013-04-30 13:17:31,569 INFO  [cloud.api.ApiServer] (ApiServer-7:null) (userId=1 accountId=1 sessionId=null) /10.144.6.19 -- GET /client/api?command=scaleVirtualMachine&id=b9d56c44-0a6c-41b8-a5f8-c3f1542246e6&serviceofferingid=65bf6f1f-ebfc-40bc-9737-300e6610cb8e HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?><scalevirtualmachineresponse cloud-stack-version="4.2.0-SNAPSHOT"><virtualmachine><id>b9d56c44-0a6c-41b8-a5f8-c3f1542246e6</id><name>b9d56c44-0a6c-41b8-a5f8-c3f1542246e6</name><account>admin</account><domainid>86400326-acf2-11e2-a799-ca27ffbee488</domainid><domain>ROOT</domain><created>2013-04-29T17:08:09+0530</created><state>Running</state><haenable>false</haenable><zoneid>ee01867c-cc53-4e7f-a653-3b2a63c7deea</zoneid><zonename>Advzone1</zonename><zonetype>Advanced</zonetype><hostid>0cd6f14c-ad57-4592-bc7d-6b0f68ca9647</hostid><hostname>xen13.cloud.com</hostname><templateid>98c3760f-7005-418e-b9c0-8b90ed7f2caa</templateid><templatename>template1</templatename><templatedisplaytext>template1</templatedisplaytext><passwordenabled>false</passwordenabled><serviceofferingid>65bf6f1f-ebfc-40bc-9737-300e6610cb8e</serviceofferingid><serviceofferingname>Medium Instance</serviceofferingname><cpunumber>1</cpunumber><cpuspeed>1000</cpuspeed><memory>1024</memory><cpuused>0%</cpuused><networkkbsread>3</networkkbsread><networkkbswrite>2</networkkbswrite><guestosid>86cdb39c-acf2-11e2-a799-ca27ffbee488</guestosid><rootdeviceid>0</rootdeviceid><rootdevicetype>ROOT</rootdevicetype><nic><id>f853fe77-45dc-45bc-8303-b3d3010a8c3a</id><networkid>43561921-e0a5-43b1-9f55-ea6cd090ed3f</networkid><networkname>adminnw1</networkname><netmask>255.255.255.0</netmask><gateway>10.1.1.1</gateway><ipaddress>10.1.1.249</ipaddress><isolationuri>vlan://810</isolationuri><broadcasturi>vlan://810</broadcasturi><traffictype>Guest</traffictype><type>Isolated</type><isdefault>true</isdefault><macaddress>02:00:5f:f2:00:03</macaddress></nic><hypervisor>XenServer</hypervisor><instancename>i-2-17-VM</instancename><jobstatus>0</jobstatus></virtualmachine></scalevirtualmachineresponse> 200 1803

2013-04-30 13:17:32,908 INFO  [cloud.api.ApiServer] (catalina-exec-22:null) (userId=2 accountId=2 sessionId=A584DF11563A8692B47D558847532CE0) 10.144.6.19 -- GET command=queryAsyncJobResult&jobId=undefined&response=json&sessionkey=RRz%2F6uNDd72XHbIsFqSXFeRpuLw%3D&_=1367308143698 431 Unable to execute API command queryasyncjobresult due to invalid value. Invalid parameter jobid value=undefined due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class.


2)      After scaleup, resource usage of domain/account are not getting updated  - I will create the bug for this.

Thanks,
Sailaja.M