You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Charles Moulliard <ch...@gmail.com> on 2012/12/07 16:34:03 UTC
cloudmonkey : add a instance
Hi,
What is the command to be used to add an instance using cloudmonkey ?
Regards
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Rohit Yadav <ro...@citrix.com>.
This is weird, can you try to deploy a vm using the UI and watch out for the params on the js console, using Firebug or any other debug tool.
Looks like you're trying this on DevCloud, beware the resources are limited. If your host has local storage (DevCloud has local storage) make sure the service offering you're using has local storage as well (the default tinyOffering is very small) and is enough root disk space to hold centos (or any other template/iso) and watch out for any errors on the mgmt server log as well. From mgmt server's log you would be able to debug the issue.
Regards.
On 10-Dec-2012, at 1:38 PM, Charles Moulliard <ch...@gmail.com> wrote:
> No more info in the cloudmonkey load file. Connection, port, apikey and
> secretkey are correct as I can issue others commands :
>
> 2012-12-10 22:29:47,500 - cloudmonkey.py:200 - [DEBUG] ====START Request====
> 2012-12-10 22:29:47,500 - cloudmonkey.py:201 - [DEBUG] Requesting
> command=listIsos, args={}
> 2012-12-10 22:29:48,176 - cloudstackConnection.py:78 - [DEBUG] sending GET
> request:
> apiKey=ThrEupPMcvuuERcDDm6MhfkQ9WYkpCNRlIS84c2XPALkxUG3InE_XAr-nfXgh-of1kl2bIk427jdy81EVvzSTQ&command=listIsos&response=json&signature=zuuqMVal32%2BvwAnVUTatDDfABnM%3D
> 2012-12-10 22:29:48,177 - cloudstackConnection.py:81 - [INFO] got response:
> { "listisosresponse" : { "count":2 ,"iso" : [
> {"id":"b827bb35-e02b-4330-884f-b2aa5451d1e2","name":"CentOS-6.3","displaytext":"CentOS-6.3","ispublic":true,"created":"2012-12-03T21:44:01+0100","isready":true,"bootable":true,"isfeatured":false,"crossZones":true,"ostypeid":"b2d716f5-5bb5-46e0-aabf-0e0baf18fc14","ostypename":"Other
> 2.6x Linux
> (64-bit)","account":"admin","zoneid":"8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805","zonename":"DevCloud0","status":"Successfully
> Installed","size":346011648,"domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"checksum":"087713752fa88c03a5e8471c661ad1a2","tags":[]},
> {"id":"8e9693e7-47e8-4d01-b9c0-e63ac1bdc623","name":"xs-tools.iso","displaytext":"xen-pv-drv-iso","ispublic":true,"created":"2012-12-03T19:43:56+0100","isready":true,"passwordenabled":false,"bootable":false,"isfeatured":true,"crossZones":false,"account":"system","domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"tags":[]}
> ] } }
> 2012-12-10 22:29:48,188 - cloudmonkey.py:210 - [DEBUG] ====END Request====
>
> 2012-12-10 22:28:29,610 - cloudmonkey.py:200 - [DEBUG] ====START Request====
> 2012-12-10 22:28:29,611 - cloudmonkey.py:201 - [DEBUG] Requesting
> command=deployVirtualMachine, args={'templateid':
> 'b827bb35-e02b-4330-884f-b2aa5451d1e2', 'serviceofferingid':
> '763bc258-3d76-11e2-a57c-6446332c44d0', 'zoneid':
> '8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805'}
> 2012-12-10 22:28:30,115 - cloudstackConnection.py:88 - [CRITICAL] server
> returned 431 error code
> 2012-12-10 22:28:30,116 - cloudmonkey.py:210 - [DEBUG] ====END Request====
>
> On Mon, Dec 10, 2012 at 10:23 PM, Rohit Yadav <ro...@citrix.com>wrote:
>
>> tail -f ~/.cloudmonkey_log
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Rohit Yadav <ro...@citrix.com>.
On 10-Dec-2012, at 1:47 PM, Charles Moulliard <ch...@gmail.com> wrote:
> I just figure out the error (templateid was not correct)
>
> Log of mngt server : INFO [cloud.api.ApiDispatcher]
> (485313821@qtp-1574876663-5:) Installing from ISO requires a disk offering
> to be specified for the root disk.
>
> BTW : Could be helpful to have a more beautiful message than a HTTP 431
> error ;-)
It would print anything mgmt server sends it back, and all these errors have meanings, for example 431 would mean something's wrong with the request;
ref: http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html says:
"if an unrecognized status code of 431 is received by the client, it can safely assume that there was something wrong with its request and treat the response as if it had received a 400 status code."
But, yes we need to do much better ways of logging and debugging things.
Regards.
>
>
> On Mon, Dec 10, 2012 at 10:38 PM, Charles Moulliard <ch...@gmail.com>wrote:
>
>> No more info in the cloudmonkey load file. Connection, port, apikey and
>> secretkey are correct as I can issue others commands :
>>
>> 2012-12-10 22:29:47,500 - cloudmonkey.py:200 - [DEBUG] ====START
>> Request====
>> 2012-12-10 22:29:47,500 - cloudmonkey.py:201 - [DEBUG] Requesting
>> command=listIsos, args={}
>> 2012-12-10 22:29:48,176 - cloudstackConnection.py:78 - [DEBUG] sending GET
>> request:
>> apiKey=ThrEupPMcvuuERcDDm6MhfkQ9WYkpCNRlIS84c2XPALkxUG3InE_XAr-nfXgh-of1kl2bIk427jdy81EVvzSTQ&command=listIsos&response=json&signature=zuuqMVal32%2BvwAnVUTatDDfABnM%3D
>> 2012-12-10 22:29:48,177 - cloudstackConnection.py:81 - [INFO] got
>> response: { "listisosresponse" : { "count":2 ,"iso" : [
>> {"id":"b827bb35-e02b-4330-884f-b2aa5451d1e2","name":"CentOS-6.3","displaytext":"CentOS-6.3","ispublic":true,"created":"2012-12-03T21:44:01+0100","isready":true,"bootable":true,"isfeatured":false,"crossZones":true,"ostypeid":"b2d716f5-5bb5-46e0-aabf-0e0baf18fc14","ostypename":"Other
>> 2.6x Linux
>> (64-bit)","account":"admin","zoneid":"8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805","zonename":"DevCloud0","status":"Successfully
>> Installed","size":346011648,"domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"checksum":"087713752fa88c03a5e8471c661ad1a2","tags":[]},
>> {"id":"8e9693e7-47e8-4d01-b9c0-e63ac1bdc623","name":"xs-tools.iso","displaytext":"xen-pv-drv-iso","ispublic":true,"created":"2012-12-03T19:43:56+0100","isready":true,"passwordenabled":false,"bootable":false,"isfeatured":true,"crossZones":false,"account":"system","domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"tags":[]}
>> ] } }
>> 2012-12-10 22:29:48,188 - cloudmonkey.py:210 - [DEBUG] ====END Request====
>>
>> 2012-12-10 22:28:29,610 - cloudmonkey.py:200 - [DEBUG] ====START
>> Request====
>> 2012-12-10 22:28:29,611 - cloudmonkey.py:201 - [DEBUG] Requesting
>> command=deployVirtualMachine, args={'templateid':
>> 'b827bb35-e02b-4330-884f-b2aa5451d1e2', 'serviceofferingid':
>> '763bc258-3d76-11e2-a57c-6446332c44d0', 'zoneid':
>> '8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805'}
>> 2012-12-10 22:28:30,115 - cloudstackConnection.py:88 - [CRITICAL] server
>> returned 431 error code
>> 2012-12-10 22:28:30,116 - cloudmonkey.py:210 - [DEBUG] ====END Request====
>>
>> On Mon, Dec 10, 2012 at 10:23 PM, Rohit Yadav <ro...@citrix.com>wrote:
>>
>>> tail -f ~/.cloudmonkey_log
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Sr. Enterprise Architect (RedHat)
>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
I just figure out the error (templateid was not correct)
Log of mngt server : INFO [cloud.api.ApiDispatcher]
(485313821@qtp-1574876663-5:) Installing from ISO requires a disk offering
to be specified for the root disk.
BTW : Could be helpful to have a more beautiful message than a HTTP 431
error ;-)
On Mon, Dec 10, 2012 at 10:38 PM, Charles Moulliard <ch...@gmail.com>wrote:
> No more info in the cloudmonkey load file. Connection, port, apikey and
> secretkey are correct as I can issue others commands :
>
> 2012-12-10 22:29:47,500 - cloudmonkey.py:200 - [DEBUG] ====START
> Request====
> 2012-12-10 22:29:47,500 - cloudmonkey.py:201 - [DEBUG] Requesting
> command=listIsos, args={}
> 2012-12-10 22:29:48,176 - cloudstackConnection.py:78 - [DEBUG] sending GET
> request:
> apiKey=ThrEupPMcvuuERcDDm6MhfkQ9WYkpCNRlIS84c2XPALkxUG3InE_XAr-nfXgh-of1kl2bIk427jdy81EVvzSTQ&command=listIsos&response=json&signature=zuuqMVal32%2BvwAnVUTatDDfABnM%3D
> 2012-12-10 22:29:48,177 - cloudstackConnection.py:81 - [INFO] got
> response: { "listisosresponse" : { "count":2 ,"iso" : [
> {"id":"b827bb35-e02b-4330-884f-b2aa5451d1e2","name":"CentOS-6.3","displaytext":"CentOS-6.3","ispublic":true,"created":"2012-12-03T21:44:01+0100","isready":true,"bootable":true,"isfeatured":false,"crossZones":true,"ostypeid":"b2d716f5-5bb5-46e0-aabf-0e0baf18fc14","ostypename":"Other
> 2.6x Linux
> (64-bit)","account":"admin","zoneid":"8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805","zonename":"DevCloud0","status":"Successfully
> Installed","size":346011648,"domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"checksum":"087713752fa88c03a5e8471c661ad1a2","tags":[]},
> {"id":"8e9693e7-47e8-4d01-b9c0-e63ac1bdc623","name":"xs-tools.iso","displaytext":"xen-pv-drv-iso","ispublic":true,"created":"2012-12-03T19:43:56+0100","isready":true,"passwordenabled":false,"bootable":false,"isfeatured":true,"crossZones":false,"account":"system","domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"tags":[]}
> ] } }
> 2012-12-10 22:29:48,188 - cloudmonkey.py:210 - [DEBUG] ====END Request====
>
> 2012-12-10 22:28:29,610 - cloudmonkey.py:200 - [DEBUG] ====START
> Request====
> 2012-12-10 22:28:29,611 - cloudmonkey.py:201 - [DEBUG] Requesting
> command=deployVirtualMachine, args={'templateid':
> 'b827bb35-e02b-4330-884f-b2aa5451d1e2', 'serviceofferingid':
> '763bc258-3d76-11e2-a57c-6446332c44d0', 'zoneid':
> '8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805'}
> 2012-12-10 22:28:30,115 - cloudstackConnection.py:88 - [CRITICAL] server
> returned 431 error code
> 2012-12-10 22:28:30,116 - cloudmonkey.py:210 - [DEBUG] ====END Request====
>
> On Mon, Dec 10, 2012 at 10:23 PM, Rohit Yadav <ro...@citrix.com>wrote:
>
>> tail -f ~/.cloudmonkey_log
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
No more info in the cloudmonkey load file. Connection, port, apikey and
secretkey are correct as I can issue others commands :
2012-12-10 22:29:47,500 - cloudmonkey.py:200 - [DEBUG] ====START Request====
2012-12-10 22:29:47,500 - cloudmonkey.py:201 - [DEBUG] Requesting
command=listIsos, args={}
2012-12-10 22:29:48,176 - cloudstackConnection.py:78 - [DEBUG] sending GET
request:
apiKey=ThrEupPMcvuuERcDDm6MhfkQ9WYkpCNRlIS84c2XPALkxUG3InE_XAr-nfXgh-of1kl2bIk427jdy81EVvzSTQ&command=listIsos&response=json&signature=zuuqMVal32%2BvwAnVUTatDDfABnM%3D
2012-12-10 22:29:48,177 - cloudstackConnection.py:81 - [INFO] got response:
{ "listisosresponse" : { "count":2 ,"iso" : [
{"id":"b827bb35-e02b-4330-884f-b2aa5451d1e2","name":"CentOS-6.3","displaytext":"CentOS-6.3","ispublic":true,"created":"2012-12-03T21:44:01+0100","isready":true,"bootable":true,"isfeatured":false,"crossZones":true,"ostypeid":"b2d716f5-5bb5-46e0-aabf-0e0baf18fc14","ostypename":"Other
2.6x Linux
(64-bit)","account":"admin","zoneid":"8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805","zonename":"DevCloud0","status":"Successfully
Installed","size":346011648,"domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"checksum":"087713752fa88c03a5e8471c661ad1a2","tags":[]},
{"id":"8e9693e7-47e8-4d01-b9c0-e63ac1bdc623","name":"xs-tools.iso","displaytext":"xen-pv-drv-iso","ispublic":true,"created":"2012-12-03T19:43:56+0100","isready":true,"passwordenabled":false,"bootable":false,"isfeatured":true,"crossZones":false,"account":"system","domain":"ROOT","domainid":"df2a5ee2-df6c-449d-8bfb-ca4adff024a1","isextractable":false,"tags":[]}
] } }
2012-12-10 22:29:48,188 - cloudmonkey.py:210 - [DEBUG] ====END Request====
2012-12-10 22:28:29,610 - cloudmonkey.py:200 - [DEBUG] ====START Request====
2012-12-10 22:28:29,611 - cloudmonkey.py:201 - [DEBUG] Requesting
command=deployVirtualMachine, args={'templateid':
'b827bb35-e02b-4330-884f-b2aa5451d1e2', 'serviceofferingid':
'763bc258-3d76-11e2-a57c-6446332c44d0', 'zoneid':
'8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805'}
2012-12-10 22:28:30,115 - cloudstackConnection.py:88 - [CRITICAL] server
returned 431 error code
2012-12-10 22:28:30,116 - cloudmonkey.py:210 - [DEBUG] ====END Request====
On Mon, Dec 10, 2012 at 10:23 PM, Rohit Yadav <ro...@citrix.com>wrote:
> tail -f ~/.cloudmonkey_log
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Rohit Yadav <ro...@citrix.com>.
Looks like some parameter error, can you check and make sure you've correct host (ip of your mgmt server), port, apikey and secretkey config for cloudmonkey. You can try debugging cloudmonkey's log: tail -f ~/.cloudmonkey_log (or any other path if you've changed the default logging file path)
See what the error is trying to suggest, make sure you've deployed your zone, added hosts etc.
Regards.
On 10-Dec-2012, at 12:16 PM, Charles Moulliard <ch...@gmail.com> wrote:
> Rohit,
>
> Here is the syntax used with lowercase and cloudmonkey 4.0.0
>
> ☁ Apache CloudStack 🐵 cloudmonkey 4.0.0. Type help or ? to list commands.
>
> mycloudmonkey> deploy virtualmachine
> account= diskofferingid= displayname= domainid=
> group= hostid= hypervisor=
> ipaddress=
> iptonetworklist= isAsync= keyboard= keypair=
> name= networkids= projectid=
> securitygroupids=
> securitygroupnames= serviceofferingid= size= startvm=
> templateid= userdata= zoneid=
>
> mycloudmonkey> deploy virtualmachine
> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> HTTP Error 431: 431
>
> Error 431 is there.
>
> I will make a test with cloudmonkey 4.1.0-SNAPSHOT.
>
> Regards,
>
> Charles
>
>
>
> On Mon, Dec 10, 2012 at 10:14 AM, Rohit Yadav <ro...@citrix.com>wrote:
>
>> meh, just try autocompletion. It's deploy virtualmachine not camelcase
>> virtualMachine.
>> All args in cloudmonkey are lowercase, looks like someone forgot to read
>> the wiki.
>>
>> Regard.
>> ________________________________________
>> From: Charles Moulliard [ch007m@gmail.com]
>> Sent: Sunday, December 09, 2012 2:54 PM
>> To: cloudstack-users@incubator.apache.org
>> Subject: Re: cloudmonkey : add a instance
>>
>> fail too
>>
>> mycloudmonkey> deploy virtualMachine
>> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
>> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
>> templateid=b827bb35-e02b-4330-884f-b2aa5
>> Error: invalid deploy api arg 'virtualMachine'
>>
>>
>> On Sun, Dec 9, 2012 at 10:17 AM, Charles Moulliard <ch...@gmail.com>
>> wrote:
>>
>>> Same error :
>>>
>>> mycloudmonkey> api deployVirtualMachine
>>> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
>>> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
>>> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
>>> HTTP Error 431: 431
>>> mycloudmonkey> deployVirtualMachine
>>> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
>>> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
>>> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
>>> HTTP Error 431: 431
>>>
>>>
>>> On Sat, Dec 8, 2012 at 4:14 PM, Rohit Yadav <rohit.yadav@citrix.com
>>> wrote:
>>>
>>>> key=value; syntax
>>>>
>>>> mycoudmonkey> deploy virtualmachine
>>>> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
>>>> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
>>>> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
>>>>
>>>> ________________________________________
>>>> From: Charles Moulliard [ch007m@gmail.com]
>>>> Sent: Saturday, December 08, 2012 2:43 PM
>>>> To: cloudstack-users@incubator.apache.org
>>>> Subject: Re: cloudmonkey : add a instance
>>>>
>>>> I get an HTTP 431 error code as response :
>>>>
>>>> mycloudmonkey> api deployVirtualMachine serviceofferingid
>>>> 763bc258-3d76-11e2-a57c-6446332c44d0 zoneid
>>>> 8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805 templateid
>>>> b827bb35-e02b-4330-884f-b2aa5451d1e2
>>>> HTTP Error 431: 431
>>>>
>>>>
>>>> On Fri, Dec 7, 2012 at 11:25 PM, Rohit Yadav <ro...@citrix.com>
>>>> wrote:
>>>>
>>>>> Get the following, find the suitable ids, you can even pipe 'em (like,
>>>> cmd
>>>>> args | grep ^id\ =)
>>>>> cloudmonkey>
>>>>> list serviceofferings
>>>>> list zones
>>>>> list templates templatefilter=all
>>>>>
>>>>> then use 'em to deployvms;
>>>>>> deploy virtualmachine templateid= serviceofferingid= zoneid=
>>>>>
>>>>>
>>>>> On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com>
>> wrote:
>>>>>
>>>>>> I have discovered what is serviceOffering but I don't see How to
>>>> create a
>>>>>> new VirtualMachine as templateId is mandatory but what about ISO ?
>>>>>>
>>>>>> mycloudmonkey> api deployVirtualMachine
>>>>>> Missing arguments: templateid serviceofferingid zoneid
>>>>>>
>>>>>>
>>>>>> On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <
>> ch007m@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>>> Hi Rohit,
>>>>>>>
>>>>>>> Help a lot and this is very appreciate. The command
>>>>> deployVirtualMachine
>>>>>>> requires a templateId but what about choosing a ISO file ? What
>>>>>>> serviceOffering stands for (= disk Offering) ?
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Charles
>>>>>>>
>>>>>>> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <
>> rohit.yadav@citrix.com
>>>>>> wrote:
>>>>>>>
>>>>>>>> deployVirtualMachine
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Charles Moulliard
>>>>>>> Apache Committer / Sr. Enterprise Architect (RedHat)
>>>>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Charles Moulliard
>>>>>> Apache Committer / Sr. Enterprise Architect (RedHat)
>>>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Charles Moulliard
>>>> Apache Committer / Sr. Enterprise Architect (RedHat)
>>>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>>>
>>>
>>>
>>>
>>> --
>>> Charles Moulliard
>>> Apache Committer / Sr. Enterprise Architect (RedHat)
>>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>>
>>>
>>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Sr. Enterprise Architect (RedHat)
>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
Rohit,
Here is the syntax used with lowercase and cloudmonkey 4.0.0
☁ Apache CloudStack 🐵 cloudmonkey 4.0.0. Type help or ? to list commands.
mycloudmonkey> deploy virtualmachine
account= diskofferingid= displayname= domainid=
group= hostid= hypervisor=
ipaddress=
iptonetworklist= isAsync= keyboard= keypair=
name= networkids= projectid=
securitygroupids=
securitygroupnames= serviceofferingid= size= startvm=
templateid= userdata= zoneid=
mycloudmonkey> deploy virtualmachine
serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
HTTP Error 431: 431
Error 431 is there.
I will make a test with cloudmonkey 4.1.0-SNAPSHOT.
Regards,
Charles
On Mon, Dec 10, 2012 at 10:14 AM, Rohit Yadav <ro...@citrix.com>wrote:
> meh, just try autocompletion. It's deploy virtualmachine not camelcase
> virtualMachine.
> All args in cloudmonkey are lowercase, looks like someone forgot to read
> the wiki.
>
> Regard.
> ________________________________________
> From: Charles Moulliard [ch007m@gmail.com]
> Sent: Sunday, December 09, 2012 2:54 PM
> To: cloudstack-users@incubator.apache.org
> Subject: Re: cloudmonkey : add a instance
>
> fail too
>
> mycloudmonkey> deploy virtualMachine
> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> templateid=b827bb35-e02b-4330-884f-b2aa5
> Error: invalid deploy api arg 'virtualMachine'
>
>
> On Sun, Dec 9, 2012 at 10:17 AM, Charles Moulliard <ch...@gmail.com>
> wrote:
>
> > Same error :
> >
> > mycloudmonkey> api deployVirtualMachine
> > serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> > zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> > templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> > HTTP Error 431: 431
> > mycloudmonkey> deployVirtualMachine
> > serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> > zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> > templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> > HTTP Error 431: 431
> >
> >
> > On Sat, Dec 8, 2012 at 4:14 PM, Rohit Yadav <rohit.yadav@citrix.com
> >wrote:
> >
> >> key=value; syntax
> >>
> >> mycoudmonkey> deploy virtualmachine
> >> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> >> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> >> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> >>
> >> ________________________________________
> >> From: Charles Moulliard [ch007m@gmail.com]
> >> Sent: Saturday, December 08, 2012 2:43 PM
> >> To: cloudstack-users@incubator.apache.org
> >> Subject: Re: cloudmonkey : add a instance
> >>
> >> I get an HTTP 431 error code as response :
> >>
> >> mycloudmonkey> api deployVirtualMachine serviceofferingid
> >> 763bc258-3d76-11e2-a57c-6446332c44d0 zoneid
> >> 8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805 templateid
> >> b827bb35-e02b-4330-884f-b2aa5451d1e2
> >> HTTP Error 431: 431
> >>
> >>
> >> On Fri, Dec 7, 2012 at 11:25 PM, Rohit Yadav <ro...@citrix.com>
> >> wrote:
> >>
> >> > Get the following, find the suitable ids, you can even pipe 'em (like,
> >> cmd
> >> > args | grep ^id\ =)
> >> > cloudmonkey>
> >> > list serviceofferings
> >> > list zones
> >> > list templates templatefilter=all
> >> >
> >> > then use 'em to deployvms;
> >> > > deploy virtualmachine templateid= serviceofferingid= zoneid=
> >> >
> >> >
> >> > On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com>
> wrote:
> >> >
> >> > > I have discovered what is serviceOffering but I don't see How to
> >> create a
> >> > > new VirtualMachine as templateId is mandatory but what about ISO ?
> >> > >
> >> > > mycloudmonkey> api deployVirtualMachine
> >> > > Missing arguments: templateid serviceofferingid zoneid
> >> > >
> >> > >
> >> > > On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <
> ch007m@gmail.com>
> >> > wrote:
> >> > >
> >> > >> Hi Rohit,
> >> > >>
> >> > >> Help a lot and this is very appreciate. The command
> >> > deployVirtualMachine
> >> > >> requires a templateId but what about choosing a ISO file ? What
> >> > >> serviceOffering stands for (= disk Offering) ?
> >> > >>
> >> > >> Regards,
> >> > >>
> >> > >> Charles
> >> > >>
> >> > >> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <
> rohit.yadav@citrix.com
> >> > >wrote:
> >> > >>
> >> > >>> deployVirtualMachine
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> > >> --
> >> > >> Charles Moulliard
> >> > >> Apache Committer / Sr. Enterprise Architect (RedHat)
> >> > >> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> >> > >>
> >> > >>
> >> > >>
> >> > >
> >> > >
> >> > > --
> >> > > Charles Moulliard
> >> > > Apache Committer / Sr. Enterprise Architect (RedHat)
> >> > > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> >> >
> >> >
> >>
> >>
> >> --
> >> Charles Moulliard
> >> Apache Committer / Sr. Enterprise Architect (RedHat)
> >> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> >>
> >
> >
> >
> > --
> > Charles Moulliard
> > Apache Committer / Sr. Enterprise Architect (RedHat)
> > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> >
> >
> >
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
RE: cloudmonkey : add a instance
Posted by Rohit Yadav <ro...@citrix.com>.
meh, just try autocompletion. It's deploy virtualmachine not camelcase virtualMachine.
All args in cloudmonkey are lowercase, looks like someone forgot to read the wiki.
Regard.
________________________________________
From: Charles Moulliard [ch007m@gmail.com]
Sent: Sunday, December 09, 2012 2:54 PM
To: cloudstack-users@incubator.apache.org
Subject: Re: cloudmonkey : add a instance
fail too
mycloudmonkey> deploy virtualMachine
serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
templateid=b827bb35-e02b-4330-884f-b2aa5
Error: invalid deploy api arg 'virtualMachine'
On Sun, Dec 9, 2012 at 10:17 AM, Charles Moulliard <ch...@gmail.com> wrote:
> Same error :
>
> mycloudmonkey> api deployVirtualMachine
> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> HTTP Error 431: 431
> mycloudmonkey> deployVirtualMachine
> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> HTTP Error 431: 431
>
>
> On Sat, Dec 8, 2012 at 4:14 PM, Rohit Yadav <ro...@citrix.com>wrote:
>
>> key=value; syntax
>>
>> mycoudmonkey> deploy virtualmachine
>> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
>> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
>> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
>>
>> ________________________________________
>> From: Charles Moulliard [ch007m@gmail.com]
>> Sent: Saturday, December 08, 2012 2:43 PM
>> To: cloudstack-users@incubator.apache.org
>> Subject: Re: cloudmonkey : add a instance
>>
>> I get an HTTP 431 error code as response :
>>
>> mycloudmonkey> api deployVirtualMachine serviceofferingid
>> 763bc258-3d76-11e2-a57c-6446332c44d0 zoneid
>> 8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805 templateid
>> b827bb35-e02b-4330-884f-b2aa5451d1e2
>> HTTP Error 431: 431
>>
>>
>> On Fri, Dec 7, 2012 at 11:25 PM, Rohit Yadav <ro...@citrix.com>
>> wrote:
>>
>> > Get the following, find the suitable ids, you can even pipe 'em (like,
>> cmd
>> > args | grep ^id\ =)
>> > cloudmonkey>
>> > list serviceofferings
>> > list zones
>> > list templates templatefilter=all
>> >
>> > then use 'em to deployvms;
>> > > deploy virtualmachine templateid= serviceofferingid= zoneid=
>> >
>> >
>> > On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com> wrote:
>> >
>> > > I have discovered what is serviceOffering but I don't see How to
>> create a
>> > > new VirtualMachine as templateId is mandatory but what about ISO ?
>> > >
>> > > mycloudmonkey> api deployVirtualMachine
>> > > Missing arguments: templateid serviceofferingid zoneid
>> > >
>> > >
>> > > On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <ch...@gmail.com>
>> > wrote:
>> > >
>> > >> Hi Rohit,
>> > >>
>> > >> Help a lot and this is very appreciate. The command
>> > deployVirtualMachine
>> > >> requires a templateId but what about choosing a ISO file ? What
>> > >> serviceOffering stands for (= disk Offering) ?
>> > >>
>> > >> Regards,
>> > >>
>> > >> Charles
>> > >>
>> > >> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <rohit.yadav@citrix.com
>> > >wrote:
>> > >>
>> > >>> deployVirtualMachine
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> Charles Moulliard
>> > >> Apache Committer / Sr. Enterprise Architect (RedHat)
>> > >> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>> > >>
>> > >>
>> > >>
>> > >
>> > >
>> > > --
>> > > Charles Moulliard
>> > > Apache Committer / Sr. Enterprise Architect (RedHat)
>> > > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>> >
>> >
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Sr. Enterprise Architect (RedHat)
>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
fail too
mycloudmonkey> deploy virtualMachine
serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
templateid=b827bb35-e02b-4330-884f-b2aa5
Error: invalid deploy api arg 'virtualMachine'
On Sun, Dec 9, 2012 at 10:17 AM, Charles Moulliard <ch...@gmail.com> wrote:
> Same error :
>
> mycloudmonkey> api deployVirtualMachine
> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> HTTP Error 431: 431
> mycloudmonkey> deployVirtualMachine
> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> HTTP Error 431: 431
>
>
> On Sat, Dec 8, 2012 at 4:14 PM, Rohit Yadav <ro...@citrix.com>wrote:
>
>> key=value; syntax
>>
>> mycoudmonkey> deploy virtualmachine
>> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
>> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
>> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
>>
>> ________________________________________
>> From: Charles Moulliard [ch007m@gmail.com]
>> Sent: Saturday, December 08, 2012 2:43 PM
>> To: cloudstack-users@incubator.apache.org
>> Subject: Re: cloudmonkey : add a instance
>>
>> I get an HTTP 431 error code as response :
>>
>> mycloudmonkey> api deployVirtualMachine serviceofferingid
>> 763bc258-3d76-11e2-a57c-6446332c44d0 zoneid
>> 8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805 templateid
>> b827bb35-e02b-4330-884f-b2aa5451d1e2
>> HTTP Error 431: 431
>>
>>
>> On Fri, Dec 7, 2012 at 11:25 PM, Rohit Yadav <ro...@citrix.com>
>> wrote:
>>
>> > Get the following, find the suitable ids, you can even pipe 'em (like,
>> cmd
>> > args | grep ^id\ =)
>> > cloudmonkey>
>> > list serviceofferings
>> > list zones
>> > list templates templatefilter=all
>> >
>> > then use 'em to deployvms;
>> > > deploy virtualmachine templateid= serviceofferingid= zoneid=
>> >
>> >
>> > On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com> wrote:
>> >
>> > > I have discovered what is serviceOffering but I don't see How to
>> create a
>> > > new VirtualMachine as templateId is mandatory but what about ISO ?
>> > >
>> > > mycloudmonkey> api deployVirtualMachine
>> > > Missing arguments: templateid serviceofferingid zoneid
>> > >
>> > >
>> > > On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <ch...@gmail.com>
>> > wrote:
>> > >
>> > >> Hi Rohit,
>> > >>
>> > >> Help a lot and this is very appreciate. The command
>> > deployVirtualMachine
>> > >> requires a templateId but what about choosing a ISO file ? What
>> > >> serviceOffering stands for (= disk Offering) ?
>> > >>
>> > >> Regards,
>> > >>
>> > >> Charles
>> > >>
>> > >> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <rohit.yadav@citrix.com
>> > >wrote:
>> > >>
>> > >>> deployVirtualMachine
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> Charles Moulliard
>> > >> Apache Committer / Sr. Enterprise Architect (RedHat)
>> > >> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>> > >>
>> > >>
>> > >>
>> > >
>> > >
>> > > --
>> > > Charles Moulliard
>> > > Apache Committer / Sr. Enterprise Architect (RedHat)
>> > > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>> >
>> >
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Sr. Enterprise Architect (RedHat)
>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
Same error :
mycloudmonkey> api deployVirtualMachine
serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
HTTP Error 431: 431
mycloudmonkey> deployVirtualMachine
serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
HTTP Error 431: 431
On Sat, Dec 8, 2012 at 4:14 PM, Rohit Yadav <ro...@citrix.com> wrote:
> key=value; syntax
>
> mycoudmonkey> deploy virtualmachine
> templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2
> serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0
> zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
>
> ________________________________________
> From: Charles Moulliard [ch007m@gmail.com]
> Sent: Saturday, December 08, 2012 2:43 PM
> To: cloudstack-users@incubator.apache.org
> Subject: Re: cloudmonkey : add a instance
>
> I get an HTTP 431 error code as response :
>
> mycloudmonkey> api deployVirtualMachine serviceofferingid
> 763bc258-3d76-11e2-a57c-6446332c44d0 zoneid
> 8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805 templateid
> b827bb35-e02b-4330-884f-b2aa5451d1e2
> HTTP Error 431: 431
>
>
> On Fri, Dec 7, 2012 at 11:25 PM, Rohit Yadav <ro...@citrix.com>
> wrote:
>
> > Get the following, find the suitable ids, you can even pipe 'em (like,
> cmd
> > args | grep ^id\ =)
> > cloudmonkey>
> > list serviceofferings
> > list zones
> > list templates templatefilter=all
> >
> > then use 'em to deployvms;
> > > deploy virtualmachine templateid= serviceofferingid= zoneid=
> >
> >
> > On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com> wrote:
> >
> > > I have discovered what is serviceOffering but I don't see How to
> create a
> > > new VirtualMachine as templateId is mandatory but what about ISO ?
> > >
> > > mycloudmonkey> api deployVirtualMachine
> > > Missing arguments: templateid serviceofferingid zoneid
> > >
> > >
> > > On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <ch...@gmail.com>
> > wrote:
> > >
> > >> Hi Rohit,
> > >>
> > >> Help a lot and this is very appreciate. The command
> > deployVirtualMachine
> > >> requires a templateId but what about choosing a ISO file ? What
> > >> serviceOffering stands for (= disk Offering) ?
> > >>
> > >> Regards,
> > >>
> > >> Charles
> > >>
> > >> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <rohit.yadav@citrix.com
> > >wrote:
> > >>
> > >>> deployVirtualMachine
> > >>
> > >>
> > >>
> > >>
> > >> --
> > >> Charles Moulliard
> > >> Apache Committer / Sr. Enterprise Architect (RedHat)
> > >> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> > >>
> > >>
> > >>
> > >
> > >
> > > --
> > > Charles Moulliard
> > > Apache Committer / Sr. Enterprise Architect (RedHat)
> > > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> >
> >
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
RE: cloudmonkey : add a instance
Posted by Rohit Yadav <ro...@citrix.com>.
key=value; syntax
mycoudmonkey> deploy virtualmachine templateid=b827bb35-e02b-4330-884f-b2aa5451d1e2 serviceofferingid=763bc258-3d76-11e2-a57c-6446332c44d0 zoneid=8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805
________________________________________
From: Charles Moulliard [ch007m@gmail.com]
Sent: Saturday, December 08, 2012 2:43 PM
To: cloudstack-users@incubator.apache.org
Subject: Re: cloudmonkey : add a instance
I get an HTTP 431 error code as response :
mycloudmonkey> api deployVirtualMachine serviceofferingid
763bc258-3d76-11e2-a57c-6446332c44d0 zoneid
8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805 templateid
b827bb35-e02b-4330-884f-b2aa5451d1e2
HTTP Error 431: 431
On Fri, Dec 7, 2012 at 11:25 PM, Rohit Yadav <ro...@citrix.com> wrote:
> Get the following, find the suitable ids, you can even pipe 'em (like, cmd
> args | grep ^id\ =)
> cloudmonkey>
> list serviceofferings
> list zones
> list templates templatefilter=all
>
> then use 'em to deployvms;
> > deploy virtualmachine templateid= serviceofferingid= zoneid=
>
>
> On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com> wrote:
>
> > I have discovered what is serviceOffering but I don't see How to create a
> > new VirtualMachine as templateId is mandatory but what about ISO ?
> >
> > mycloudmonkey> api deployVirtualMachine
> > Missing arguments: templateid serviceofferingid zoneid
> >
> >
> > On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <ch...@gmail.com>
> wrote:
> >
> >> Hi Rohit,
> >>
> >> Help a lot and this is very appreciate. The command
> deployVirtualMachine
> >> requires a templateId but what about choosing a ISO file ? What
> >> serviceOffering stands for (= disk Offering) ?
> >>
> >> Regards,
> >>
> >> Charles
> >>
> >> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <rohit.yadav@citrix.com
> >wrote:
> >>
> >>> deployVirtualMachine
> >>
> >>
> >>
> >>
> >> --
> >> Charles Moulliard
> >> Apache Committer / Sr. Enterprise Architect (RedHat)
> >> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> >>
> >>
> >>
> >
> >
> > --
> > Charles Moulliard
> > Apache Committer / Sr. Enterprise Architect (RedHat)
> > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
I get an HTTP 431 error code as response :
mycloudmonkey> api deployVirtualMachine serviceofferingid
763bc258-3d76-11e2-a57c-6446332c44d0 zoneid
8213bb0f-5e56-4fcd-a1b5-9b85a2ef8805 templateid
b827bb35-e02b-4330-884f-b2aa5451d1e2
HTTP Error 431: 431
On Fri, Dec 7, 2012 at 11:25 PM, Rohit Yadav <ro...@citrix.com> wrote:
> Get the following, find the suitable ids, you can even pipe 'em (like, cmd
> args | grep ^id\ =)
> cloudmonkey>
> list serviceofferings
> list zones
> list templates templatefilter=all
>
> then use 'em to deployvms;
> > deploy virtualmachine templateid= serviceofferingid= zoneid=
>
>
> On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com> wrote:
>
> > I have discovered what is serviceOffering but I don't see How to create a
> > new VirtualMachine as templateId is mandatory but what about ISO ?
> >
> > mycloudmonkey> api deployVirtualMachine
> > Missing arguments: templateid serviceofferingid zoneid
> >
> >
> > On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <ch...@gmail.com>
> wrote:
> >
> >> Hi Rohit,
> >>
> >> Help a lot and this is very appreciate. The command
> deployVirtualMachine
> >> requires a templateId but what about choosing a ISO file ? What
> >> serviceOffering stands for (= disk Offering) ?
> >>
> >> Regards,
> >>
> >> Charles
> >>
> >> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <rohit.yadav@citrix.com
> >wrote:
> >>
> >>> deployVirtualMachine
> >>
> >>
> >>
> >>
> >> --
> >> Charles Moulliard
> >> Apache Committer / Sr. Enterprise Architect (RedHat)
> >> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
> >>
> >>
> >>
> >
> >
> > --
> > Charles Moulliard
> > Apache Committer / Sr. Enterprise Architect (RedHat)
> > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Rohit Yadav <ro...@citrix.com>.
Get the following, find the suitable ids, you can even pipe 'em (like, cmd args | grep ^id\ =)
cloudmonkey>
list serviceofferings
list zones
list templates templatefilter=all
then use 'em to deployvms;
> deploy virtualmachine templateid= serviceofferingid= zoneid=
On 07-Dec-2012, at 1:52 PM, Charles Moulliard <ch...@gmail.com> wrote:
> I have discovered what is serviceOffering but I don't see How to create a
> new VirtualMachine as templateId is mandatory but what about ISO ?
>
> mycloudmonkey> api deployVirtualMachine
> Missing arguments: templateid serviceofferingid zoneid
>
>
> On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <ch...@gmail.com> wrote:
>
>> Hi Rohit,
>>
>> Help a lot and this is very appreciate. The command deployVirtualMachine
>> requires a templateId but what about choosing a ISO file ? What
>> serviceOffering stands for (= disk Offering) ?
>>
>> Regards,
>>
>> Charles
>>
>> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <ro...@citrix.com>wrote:
>>
>>> deployVirtualMachine
>>
>>
>>
>>
>> --
>> Charles Moulliard
>> Apache Committer / Sr. Enterprise Architect (RedHat)
>> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>>
>>
>>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
I have discovered what is serviceOffering but I don't see How to create a
new VirtualMachine as templateId is mandatory but what about ISO ?
mycloudmonkey> api deployVirtualMachine
Missing arguments: templateid serviceofferingid zoneid
On Fri, Dec 7, 2012 at 10:24 PM, Charles Moulliard <ch...@gmail.com> wrote:
> Hi Rohit,
>
> Help a lot and this is very appreciate. The command deployVirtualMachine
> requires a templateId but what about choosing a ISO file ? What
> serviceOffering stands for (= disk Offering) ?
>
> Regards,
>
> Charles
>
> On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <ro...@citrix.com>wrote:
>
>> deployVirtualMachine
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Sr. Enterprise Architect (RedHat)
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Charles Moulliard <ch...@gmail.com>.
Hi Rohit,
Help a lot and this is very appreciate. The command deployVirtualMachine
requires a templateId but what about choosing a ISO file ? What
serviceOffering stands for (= disk Offering) ?
Regards,
Charles
On Fri, Dec 7, 2012 at 7:37 PM, Rohit Yadav <ro...@citrix.com> wrote:
> deployVirtualMachine
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: cloudmonkey : add a instance
Posted by Rohit Yadav <ro...@citrix.com>.
As I mentioned in one of the previous emails, read: http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html
Pl. follow the docs there and read the API guide on usage: http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/API_Developers_Guide/index.html
All the apis are grouped per entities, like VirtualMachines etc.
To answer your question, this is how I would do it:
- So what would be the api for adding a vm? I see on the html docs under VM:
Virtual Machine
* deployVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/deployVirtualMachine.html>
* destroyVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/destroyVirtualMachine.html>
* rebootVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/rebootVirtualMachine.html>
* startVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/startVirtualMachine.html>
* stopVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/stopVirtualMachine.html>
* resetPasswordForVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/resetPasswordForVirtualMachine.html>
* changeServiceForVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/changeServiceForVirtualMachine.html>
* updateVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/updateVirtualMachine.html>
* recoverVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/recoverVirtualMachine.html>
* listVirtualMachines<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/listVirtualMachines.html>
* getVMPassword<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/getVMPassword.html>
* migrateVirtualMachine (A)<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/migrateVirtualMachine.html>
* assignVirtualMachine<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/assignVirtualMachine.html>
* restoreVirtualMachine (A<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_admin/restoreVirtualMachine.html>
- I see deployVirtualMachines would make sense, I click on it, I see:
<http://cloudstack.org>
Apache CloudStack 4.0.0-incubating Root Admin API Reference
deployVirtualMachine
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
<http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/TOC_Root_Admin.html>
Request parameters
Parameter Name Description Required
serviceofferingid the ID of the service offering for the virtual machine true
templateid the ID of the template for the virtual machine true
zoneid availability zone for the virtual machine true
- I open cloudmonkey to see if there anything when I type dell<tab><tab>, it completes to deploy, I add a space<tab><tab>, I get: deploy virtualmachine
- I don't know what to pass so I pass, --help
deploy virtualmachine --help
- Job done!
Hope this would help,
Rohit
On 07-Dec-2012, at 7:34 AM, Charles Moulliard <ch...@gmail.com>> wrote:
Hi,
What is the command to be used to add an instance using cloudmonkey ?
Regards
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com