neutron/neutron/tests/unit/extensions
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
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-01-05 11:57:24 +00:00
extendedattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
extensionattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
foxinsocks.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
test_address_scope.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_agent.py Neutron-lib: use the L3_AGENT* definitions from neutron-lib 2016-08-01 06:50:11 -07:00
test_availability_zone.py tests: stop using ml2 plugin full import paths in tests 2016-07-27 10:40:22 +00:00
test_default_subnetpools.py Fix call a method of extension class 2017-04-11 07:32:03 +00:00
test_dns.py Fix call a method of extension class 2017-04-11 07:32:03 +00:00
test_external_net.py neutron-lib: use L3 constant 2017-01-11 04:27:56 -08:00
test_extra_dhcp_opt.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
test_extraroute.py neutron-lib: start using neutron-lib helpers 2016-10-10 01:30:26 -07:00
test_flavors.py Stop using legacy facade 2017-01-19 13:02:33 +04:00
test_l3.py Fix bug when checking duplicated subnets for router interface 2017-06-22 15:47:15 +00:00
test_l3_ext_gw_mode.py Use addCleanup instead of tearDown 2017-02-02 22:07:26 +01:00
test_netmtu.py Calculate MTU on every network fetch instead of on create 2016-07-20 13:26:50 +02:00
test_network_ip_availability.py Fix deprecation warnings 2016-08-26 22:16:06 -04:00
test_portsecurity.py Use addCleanup instead of tearDown 2017-02-02 22:07:26 +01:00
test_providernet.py Fix call a method of extension class 2017-04-11 07:32:03 +00:00
test_quotasv2.py Use addCleanup instead of tearDown 2017-02-02 22:07:26 +01:00
test_router_availability_zone.py Merge "neutron-lib: use L3 constant" 2017-01-13 04:54:04 +00:00
test_securitygroup.py Merge "Bulk creation of SecurityGroups" 2016-12-25 05:48:16 +00:00
test_segment.py Do not defer allocation if fixed-ips is in the port create request. 2017-09-01 10:10:36 +00:00
test_servicetype.py Make UUIDField actually validate UUIDs 2016-12-07 15:11:43 +00:00
test_subnet_service_types.py Always pass device_owner to _ipam_get_subnets() 2018-02-17 18:32:21 +00:00
test_tag.py Enhance tag mechanism 2017-02-06 10:09:05 +00:00
test_timestamp.py Register sqlalchemy events through hook for UT cleanup 2017-01-20 04:15:01 -08:00
test_vlantransparent.py Fix call a method of extension class 2017-04-11 07:32:03 +00:00
v2attributes.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00