neutron/neutron/tests/unit
Daniel Alvarez 4faac33168 Spawn/stop metadata proxies upon adding/deleting router interfaces
When a network becomes isolated and isolated_metadata_enabled=True, the DHCP
agent won't spawn the required metadata proxy instance unless the agent gets
restarted. Similarly, it won't stop them when the network is no longer
isolated.

This patch fixes it by updating the isolated metadata proxy on port_update_end
and port_delete_end methods which are invoked every time a router interface
port is added, updated or deleted.

Change-Id: I5c197a5755135357c6465dfe4803019a2ad52c14
Closes-Bug: #1753540
Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
(cherry picked from 9362d4f1f2)
(cherry picked from commit b07aa19deb)
2018-03-28 22:24:30 +00:00
..
agent Spawn/stop metadata proxies upon adding/deleting router interfaces 2018-03-28 22:24:30 +00:00
api Allow unprivileged users to get their quota usage 2017-08-12 18:21:20 +00:00
cmd More efficiently clean up OVS ports 2018-01-25 15:29:49 +00:00
common Catch exceptions for all rpc casts 2017-07-27 09:03:00 -07:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Fix default qos policy when creating network 2017-08-24 14:35:38 +00:00
db Fixing the filter in get MTU by network list query. 2018-02-16 08:49:03 +00:00
debug use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
extensions Always pass device_owner to _ipam_get_subnets() 2018-02-17 18:32:02 +00:00
hacking Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
notifiers use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
objects Fix error message when duplicate QoS rule is created 2018-02-23 14:39:14 +01:00
plugins Merge "ml2: fix update_device_up to send lm events with linux bridge" into stable/pike 2018-03-20 23:09:15 +00:00
privileged Add netlink-lib to manage conntrack entries 2017-07-27 13:56:40 +07:00
quota CountableResource: try count/get functions for all plugins 2017-09-12 16:23:22 +00:00
scheduler Avoid redundant HA port creation during migration 2017-09-11 19:56:19 +00:00
services Merge "Fix error message when duplicate QoS rule is created" into stable/pike 2018-03-08 14:29:07 +00:00
tests Replaced assertTrue(False) with fail() 2017-06-22 19:31:00 +02:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
dummy_plugin.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
test_manager.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Remove neutron-fwaas specific policies 2017-07-16 17:56:25 +00:00
test_service.py use neutron-lib.callback.events.AFTER_SPAWN 2017-07-27 05:57:34 +00:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Pass parameters when create eventlet.wsgi server 2017-03-17 14:14:25 +08:00
testlib_api.py API compare-and-swap updates based on revision_number 2017-06-29 22:50:12 +00:00