Prevent max_count > 1 and specified ip address as input
Previously, if one did: nova boot --num-instances 2 --nic net-id=<net_id>,v4-fixed-ip=10.0.0.17 this would result in all of the instances failing to boot because neither nova-network or neutron allows multiple instances to have the same ip_address. This patch fixes this from occuring by checking for this and raising an error to the caller from nova-api. Change-Id: I7e44d58e66aeb10fb15c3553072f988f65ab823b Closes-bug: 1318754
This commit is contained in:
@@ -986,6 +986,7 @@ class Controller(wsgi.Controller):
|
||||
exception.InvalidMetadata,
|
||||
exception.InvalidRequest,
|
||||
exception.MultiplePortsNotApplicable,
|
||||
exception.InvalidFixedIpAndMaxCountRequest,
|
||||
exception.NetworkNotFound,
|
||||
exception.PortNotFound,
|
||||
exception.FixedIpAlreadyInUse,
|
||||
|
||||
Reference in New Issue
Block a user