neutron/neutron/ipam
Brian Haley 0d4889df41 Always pass device_owner to _ipam_get_subnets()
There was one code path where the existing device_owner
value, which is used for subnet selection when service_type's
are in use was not passed to _imap_get_subnets().  This could
trigger one of two exceptions - HostNotCompatibleWithFixedIps()
or IpAddressGenerationFailureNoMatchingSubnet() depending
on the environment.  Pass it along if known.

Also update the IpAddressGenerationFailureNoMatchingSubnet
exception to print the network_id and service_type values since
it could aid in debugging the problem quicker.

Change-Id: Ic13901b92cac05e8ddf1092b66aa5bcc5623fa8a
Closes-bug: #1637366
2018-02-12 15:38:24 -05:00
..
drivers Switch to use _get_subnet_object in neutrondb_ipam driver 2017-12-12 13:42:15 +01:00
__init__.py Make IPAM more pythonic 2015-07-09 17:33:17 +00:00
driver.py Remove unused variables ‘LOG' 2017-11-23 04:33:33 +08:00
exceptions.py Always pass device_owner to _ipam_get_subnets() 2018-02-12 15:38:24 -05:00
requests.py Use method get_ipv6_addr_by_EUI64 from oslo.utils 2016-08-30 19:49:09 +08:00
subnet_alloc.py New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
utils.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00