neutron/neutron/ipam
Brian Haley fb5c2ba339 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
(cherry picked from commit 0d4889df41)
2018-02-17 18:32:21 +00:00
..
drivers OVO for Ipam(Allocation,Subnet,Pool) 2017-01-19 19:25:01 +00:00
__init__.py Make IPAM more pythonic 2015-07-09 17:33:17 +00:00
driver.py Avoid IPAM driver reusing a session that has been rolled back 2016-08-12 15:53:57 +00:00
exceptions.py Always pass device_owner to _ipam_get_subnets() 2018-02-17 18:32:21 +00:00
requests.py Use method get_ipv6_addr_by_EUI64 from oslo.utils 2016-08-30 19:49:09 +08:00
subnet_alloc.py Use project_id instead of tenant_id in objects 2017-01-13 14:31:26 +00:00
utils.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00