yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #10782
[Bug 1267382] Re: ec2 api shoud check the 'max_count' and 'min_count' para in run_instances
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1267382
Title:
ec2 api shoud check the 'max_count' and 'min_count' para in
run_instances
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
the code:
def run_instances(self, context, **kwargs):
min_count = int(kwargs.get('min_count', 1))
...
(instances, resv_id) = self.compute_api.create(context,
instance_type=obj_base.obj_to_primitive(flavor),
image_href=image_uuid,
max_count=int(kwargs.get('max_count', min_count)),
min_count=min_count,
...
there is no checking to 'min_count' and 'max_count',
if 'min_count'>max_count, it will be error.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1267382/+subscriptions
References