You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by ilya musayev <il...@gmail.com> on 2014/05/06 01:55:31 UTC

[API][CLOUDMONKEY] - looking for example on creating entire zone with everything else

For the CloudStack Automation testing project, i'm looking for entire 
flow of API commands or perhaps CloudMokey CLI equivalent commands to 
mimic what Create a Zone Wizard does. VMware example would be ideal, but 
i'm certain i can figure out difference if its not.

I know i can probably get the APIs from Chrome Debugger or Firefly in 
mozilla, but it seems a bit excessive on the output.

Would anyone have it handy?

Thanks
ilya

Re: [API][CLOUDMONKEY] - looking for example on creating entire zone with everything else

Posted by Rohit Yadav <bh...@apache.org>.
Hi Ilya,

This section has an example of using cloudmonkey in a bash script to setup
a whole zone, network etc:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI#CloudStackcloudmonkeyCLI-Usingasacommandlinetool

You may use marvin and write python scripts to automate infra as well,
pointers:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Marvin+-+Testing+with+Python#Marvin-TestingwithPython-Writingthetest

Regards.



On Tue, May 6, 2014 at 5:25 AM, ilya musayev
<il...@gmail.com>wrote:

> For the CloudStack Automation testing project, i'm looking for entire flow
> of API commands or perhaps CloudMokey CLI equivalent commands to mimic what
> Create a Zone Wizard does. VMware example would be ideal, but i'm certain i
> can figure out difference if its not.
>
> I know i can probably get the APIs from Chrome Debugger or Firefly in
> mozilla, but it seems a bit excessive on the output.
>
> Would anyone have it handy?
>
> Thanks
> ilya
>

Re: [API][CLOUDMONKEY] - looking for example on creating entire zone with everything else

Posted by ilya musayev <il...@gmail.com>.
Noji

This is very helpful - https://gist.github.com/ynojima/c30e1d5d08e500e49e64

I've done lots of wrappers on cloudmonkey - this looks very similar to 
what i've done, i was missing the initial config portion of the zone, 
now i'm closer to the full stack.

Thanks for sharing,

Regards
ilya

On 5/5/14, 6:25 PM, Yoshikazu Nojima wrote:
> This is a CloudMonkey script to deploy a VXLAN enabled zone with KVM hypervisor.
> https://gist.github.com/c30e1d5d08e500e49e64.git
>
> This is a marvin config to deploy a VXLAN enabled zone with KVM hypervisor.
> https://gist.github.com/ynojima/e104189410649f3a9c91
>
> Since this scripts use VXLAN and KVM, network configuration portion
> won't be your help, but I hope other portion will be your help.
>
> FYI,
> Internet explorer's developer tool has a feature to export HTTP request log.
> The log would be good source to build API requests.
>
> Regards,
> Noji
>
>
>
>
> 2014-05-05 19:17 GMT-06:00 ilya musayev <il...@gmail.com>:
>> Hi Alena,
>>
>> Thanks for the response -it is for Advanced Shared Zone (no vpc), i figured
>> i will probably have to do this on my own. If you can share the api calls in
>> the meantime, it would certainly help. I will get the delta's.
>>
>> Or just high level overview of what commands/components need to be
>> configured.
>>
>> Thanks
>> ilya
>>
>>
>> On 5/5/14, 5:03 PM, Alena Prokharchyk wrote:
>>> Ilya, is it a basic zone or advance you are interested in? I have the
>>> stack of API calls for Advance zone, but it might miss some information
>>> that you might need - configuring traffic labels for example, number of
>>> physical networks, number of traffic types supported by each physical
>>> network, etc.
>>>
>>> If its something that you need to repeat often for the certain setup, I
>>> would suggest that the copying it from the firebug would be the best
>>> approach for you as only you know what needs to be set for your zone and
>>> to what details' extend.
>>>
>>> -Alena.
>>>
>>> On 5/5/14, 4:55 PM, "ilya musayev" <il...@gmail.com> wrote:
>>>
>>>> For the CloudStack Automation testing project, i'm looking for entire
>>>> flow of API commands or perhaps CloudMokey CLI equivalent commands to
>>>> mimic what Create a Zone Wizard does. VMware example would be ideal, but
>>>> i'm certain i can figure out difference if its not.
>>>>
>>>> I know i can probably get the APIs from Chrome Debugger or Firefly in
>>>> mozilla, but it seems a bit excessive on the output.
>>>>
>>>> Would anyone have it handy?
>>>>
>>>> Thanks
>>>> ilya
>>


Re: [API][CLOUDMONKEY] - looking for example on creating entire zone with everything else

Posted by Yoshikazu Nojima <ma...@ynojima.net>.
This is a CloudMonkey script to deploy a VXLAN enabled zone with KVM hypervisor.
https://gist.github.com/c30e1d5d08e500e49e64.git

This is a marvin config to deploy a VXLAN enabled zone with KVM hypervisor.
https://gist.github.com/ynojima/e104189410649f3a9c91

Since this scripts use VXLAN and KVM, network configuration portion
won't be your help, but I hope other portion will be your help.

FYI,
Internet explorer's developer tool has a feature to export HTTP request log.
The log would be good source to build API requests.

Regards,
Noji




2014-05-05 19:17 GMT-06:00 ilya musayev <il...@gmail.com>:
> Hi Alena,
>
> Thanks for the response -it is for Advanced Shared Zone (no vpc), i figured
> i will probably have to do this on my own. If you can share the api calls in
> the meantime, it would certainly help. I will get the delta's.
>
> Or just high level overview of what commands/components need to be
> configured.
>
> Thanks
> ilya
>
>
> On 5/5/14, 5:03 PM, Alena Prokharchyk wrote:
>>
>> Ilya, is it a basic zone or advance you are interested in? I have the
>> stack of API calls for Advance zone, but it might miss some information
>> that you might need - configuring traffic labels for example, number of
>> physical networks, number of traffic types supported by each physical
>> network, etc.
>>
>> If its something that you need to repeat often for the certain setup, I
>> would suggest that the copying it from the firebug would be the best
>> approach for you as only you know what needs to be set for your zone and
>> to what details' extend.
>>
>> -Alena.
>>
>> On 5/5/14, 4:55 PM, "ilya musayev" <il...@gmail.com> wrote:
>>
>>> For the CloudStack Automation testing project, i'm looking for entire
>>> flow of API commands or perhaps CloudMokey CLI equivalent commands to
>>> mimic what Create a Zone Wizard does. VMware example would be ideal, but
>>> i'm certain i can figure out difference if its not.
>>>
>>> I know i can probably get the APIs from Chrome Debugger or Firefly in
>>> mozilla, but it seems a bit excessive on the output.
>>>
>>> Would anyone have it handy?
>>>
>>> Thanks
>>> ilya
>
>

Re: [API][CLOUDMONKEY] - looking for example on creating entire zone with everything else

Posted by ilya musayev <il...@gmail.com>.
Hi Alena,

Thanks for the response -it is for Advanced Shared Zone (no vpc), i 
figured i will probably have to do this on my own. If you can share the 
api calls in the meantime, it would certainly help. I will get the delta's.

Or just high level overview of what commands/components need to be 
configured.

Thanks
ilya

On 5/5/14, 5:03 PM, Alena Prokharchyk wrote:
> Ilya, is it a basic zone or advance you are interested in? I have the
> stack of API calls for Advance zone, but it might miss some information
> that you might need - configuring traffic labels for example, number of
> physical networks, number of traffic types supported by each physical
> network, etc.
>
> If its something that you need to repeat often for the certain setup, I
> would suggest that the copying it from the firebug would be the best
> approach for you as only you know what needs to be set for your zone and
> to what details' extend.
>
> -Alena.
>
> On 5/5/14, 4:55 PM, "ilya musayev" <il...@gmail.com> wrote:
>
>> For the CloudStack Automation testing project, i'm looking for entire
>> flow of API commands or perhaps CloudMokey CLI equivalent commands to
>> mimic what Create a Zone Wizard does. VMware example would be ideal, but
>> i'm certain i can figure out difference if its not.
>>
>> I know i can probably get the APIs from Chrome Debugger or Firefly in
>> mozilla, but it seems a bit excessive on the output.
>>
>> Would anyone have it handy?
>>
>> Thanks
>> ilya


Re: [API][CLOUDMONKEY] - looking for example on creating entire zone with everything else

Posted by Alena Prokharchyk <Al...@citrix.com>.
Ilya, is it a basic zone or advance you are interested in? I have the
stack of API calls for Advance zone, but it might miss some information
that you might need - configuring traffic labels for example, number of
physical networks, number of traffic types supported by each physical
network, etc.

If its something that you need to repeat often for the certain setup, I
would suggest that the copying it from the firebug would be the best
approach for you as only you know what needs to be set for your zone and
to what details' extend.

-Alena.

On 5/5/14, 4:55 PM, "ilya musayev" <il...@gmail.com> wrote:

>For the CloudStack Automation testing project, i'm looking for entire
>flow of API commands or perhaps CloudMokey CLI equivalent commands to
>mimic what Create a Zone Wizard does. VMware example would be ideal, but
>i'm certain i can figure out difference if its not.
>
>I know i can probably get the APIs from Chrome Debugger or Firefly in
>mozilla, but it seems a bit excessive on the output.
>
>Would anyone have it handy?
>
>Thanks
>ilya


RE: [API][CLOUDMONKEY] - looking for example on creating entire zone with everything else

Posted by Donal Lafferty <do...@citrix.com>.
You can derive the exact API call sequence from the log file using grep & sed.  

See http://dlafferty.blogspot.co.uk/2013/07/using-cloudmonkey-to-automate.html 

DL


> -----Original Message-----
> From: ilya musayev [mailto:ilya.mailing.lists@gmail.com]
> Sent: 06 May 2014 00:56
> To: dev@cloudstack.apache.org
> Subject: [API][CLOUDMONKEY] - looking for example on creating entire zone
> with everything else
> 
> For the CloudStack Automation testing project, i'm looking for entire flow of
> API commands or perhaps CloudMokey CLI equivalent commands to mimic
> what Create a Zone Wizard does. VMware example would be ideal, but i'm
> certain i can figure out difference if its not.
> 
> I know i can probably get the APIs from Chrome Debugger or Firefly in
> mozilla, but it seems a bit excessive on the output.
> 
> Would anyone have it handy?
> 
> Thanks
> ilya