You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Aniket <an...@gslab.com> on 2013/03/06 12:11:30 UTC

Client library for Cloudstack APIs

Hello All,
We have recently deployed cloudstack 3.0.2 internally and we are now 
trying to move our existing servers to this setup. We want to automate 
this step. We already have things in place wherein we have RAW/QCOW2 
format server images with us and we want to upload these images to 
Cloudstack setup. So question is, is there any client side library (like 
ec2-XXX utils for amazon or some python based thing) which we can use? 
We want to ultimately have scripts written to do this onboarding job.

As far as I understand so far I will have to call registerTemplate API 
(http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/user/registerTemplate.html) 
and have my image available over HTTP. Any other way? Also, if there's 
no management client library then I use curl or any other HTTP client to 
do this call?

Second quick question is, is 4.0.1 release GA'ed yet?
-- 
Thanks,
Aniket

Re: Client library for Cloudstack APIs

Posted by Aniket <an...@gslab.com>.
Thanks for quick reply.
And on upload question, is that the way upload to cloudstack works (i.e. 
call registerTemplate API and have my image available over HTTP)?

Also, related another question is how Windows image upload works? I mean 
my local Windows images are RAW data disks and my cloudstack backend 
contains both Xen and KVM. So I'm not sure how this uploaded Windows 
image will work on these two hypervisors without additional driver 
install. Any idea?

On 3/6/2013 5:21 PM, Prasanna Santhanam wrote:
> On Wed, Mar 06, 2013 at 04:41:30PM +0530, Aniket wrote:
>> Hello All,
>> We have recently deployed cloudstack 3.0.2 internally and we are now
>> trying to move our existing servers to this setup. We want to automate
>> this step. We already have things in place wherein we have RAW/QCOW2
>> format server images with us and we want to upload these images to
>> Cloudstack setup. So question is, is there any client side library (like
>> ec2-XXX utils for amazon or some python based thing) which we can use?
>> We want to ultimately have scripts written to do this onboarding job.
> There's cloudmonkey CLI available via pypi.
> https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-cli.html
>> As far as I understand so far I will have to call registerTemplate API
>> (http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/user/registerTemplate.html)
>> and have my image available over HTTP. Any other way? Also, if there's
>> no management client library then I use curl or any other HTTP client to
>> do this call?
>>
>> Second quick question is, is 4.0.1 release GA'ed yet?
> Yes, there's an important usage bug fixed in this release that you
> might want to get: http://incubator.apache.org/cloudstack/downloads.html
>


Re: Client library for Cloudstack APIs

Posted by Prasanna Santhanam <ts...@apache.org>.
On Wed, Mar 06, 2013 at 04:41:30PM +0530, Aniket wrote:
> Hello All,
> We have recently deployed cloudstack 3.0.2 internally and we are now 
> trying to move our existing servers to this setup. We want to automate 
> this step. We already have things in place wherein we have RAW/QCOW2 
> format server images with us and we want to upload these images to 
> Cloudstack setup. So question is, is there any client side library (like 
> ec2-XXX utils for amazon or some python based thing) which we can use? 
> We want to ultimately have scripts written to do this onboarding job.

There's cloudmonkey CLI available via pypi.
https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-cli.html
> 
> As far as I understand so far I will have to call registerTemplate API 
> (http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/user/registerTemplate.html) 
> and have my image available over HTTP. Any other way? Also, if there's 
> no management client library then I use curl or any other HTTP client to 
> do this call?
> 
> Second quick question is, is 4.0.1 release GA'ed yet?
Yes, there's an important usage bug fixed in this release that you
might want to get: http://incubator.apache.org/cloudstack/downloads.html

-- 
Prasanna.,