Discussion:
[API][CLOUDMONKEY] - looking for example on creating entire zone with everything else
Alena Prokharchyk
2014-05-06 00:03:21 UTC
Permalink
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.
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
ilya musayev
2014-05-05 23:55:31 UTC
Permalink
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
Donal Lafferty
2014-05-06 10:22:01 UTC
Permalink
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-----
Sent: 06 May 2014 00:56
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
Rohit Yadav
2014-05-06 04:24:02 UTC
Permalink
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
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
Yoshikazu Nojima
2014-05-06 01:25:10 UTC
Permalink
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
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
Post by Alena Prokharchyk
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.
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
ilya musayev
2014-05-06 02:39:20 UTC
Permalink
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
Post by Yoshikazu Nojima
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
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
Post by Alena Prokharchyk
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.
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
ilya musayev
2014-05-06 01:17:16 UTC
Permalink
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
Post by Alena Prokharchyk
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.
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
Continue reading on narkive:
Loading...