← Back to team overview

openstack team mailing list archive

Re: [Nova] Create multiple instances in one request

 

It is a little strange but the following seems to be true.

1. The nova HTTP API has a max_count and min_count that go in the request dictionary.
2. This is not documented.
3. The novaclient python api create function has these arguments.
4. The novaclient cli does not have them, or at least they are not documented by 'nova help boot'.

Beats me why this is the case...

 -David

On 8/7/2012 1:47 PM, Patrick Petit wrote:
Dear All,

Looking into the details of the request_spec part of a RPC message ensuing a nova boot command. There is a 'num_instances' : 1 property that implies the value could be different than one (default) even though there is no cardinality parameter in nova boot nor in the API (unless I missed something big). So, I am curious to know: why is it there if we cannot create more than one instance at a time through the API, but more importantly is there a (secret) way to set that value different than 1 to tell the scheduler "please create multiple instances of that type".
Thanks in advance
Patrick



_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Follow ups

References