Hi Rohit,
Thanks for the response, please see comments inline
On 12/5/14, 12:08 AM, Rohit Yadav wrote:
Hi Ilya,
On 05-Dec-2014, at 4:00 am, ilya musayev <[email protected]> wrote:
1) When executing cloudmonkey in batch mode, it would be nice to provide exit
codes - but this may not be something easily done due to how cloudstack
responds.
The latest CloudMonkey 5.3.0 returns non-zero exit code when a CloudStack API
fails.
Need to try this out to see on 5.3.0 if it maybe sufficient.
It would be great to discuss if there are any specific error code it should
return based on the failed API, as I don’t know which ones to use. If I know
that, I should be able to easily implement it.
On shell (not as interpreter) it prints without any color and outputs errors on
stderr. Errors are more verbose now that include any cs error code and HTTP
error code with the returned json. Any discussions on this on what/how we can
improve this or any patch contributions would be great.
2) One other major useful feature would be, dump all configs from one CS host
as json, import configs into another. This way configuration of new CS hosts
becomes really easy.
By config, do you mean global settings? I want to keep the tool simply but I’m
thinking of refactoring CloudMonkey’s code so people can write plugins for it
that could control it’s behaviour, color/themes, output styles etc.
Here is the use case i have. End user needs to setup new cloudstack
instance with zones, secondary and primary stores, templates, global
settings, etc... he knows most of the configs will be similar to another
env he has with slight differences.
If there would be a way to dump this setup in its entirety, modify few
configs that are global/zone/cluster/host/network specific and use it as
a template to deploy other envs.
I tend to setup new environments quite frequently and i wrote a wrapper
around cloudmonkey that does configuration by reading a config file.
However, config export and import would be great. The export piece can
be broken down to Gobal Settings, Zone, Storage and Network - each of
these could be a separate file or 1 large file with delineation
This woulf definitely help with CI i'm going to undertake soon.
Thanks.
ilya
Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | [email protected]
Blog: bhaisaab.org | Twitter: @_bhaisaab
Find out more about ShapeBlue and our range of CloudStack related services
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software
Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure
Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>
This email and any attachments to it may be confidential and are intended solely
for the use of the individual to whom it is addressed. Any views or opinions
expressed are solely those of the author and do not necessarily represent those of
Shape Blue Ltd or related companies. If you are not the intended recipient of this
email, you must neither take any action based upon its contents, nor copy or show
it to anyone. Please contact the sender if you believe you have received this email
in error. Shape Blue Ltd is a company incorporated in England & Wales.
ShapeBlue Services India LLP is a company incorporated in India and is operated
under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company
incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue
SA Pty Ltd is a company registered by The Republic of South Africa and is traded
under license from Shape Blue Ltd. ShapeBlue is a registered trademark.