]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix uuid passing in disable_isolated_metadata_proxy
authorShih-Hao Li <shihli@vmware.com>
Wed, 30 Dec 2015 19:43:23 +0000 (11:43 -0800)
committerShih-Hao Li <shihli@vmware.com>
Fri, 8 Jan 2016 00:25:27 +0000 (00:25 +0000)
commit5bd76c52844ffcfb2bd0ce1753b5159ef510b323
tree60c0d15c0e6a976c1e0fe2f79ec7c1faed7c9953
parent8e5424865386dfce5c01864a63474711caad760b
Fix uuid passing in disable_isolated_metadata_proxy

In DhcpAgent, when enable_isolated_metadata_proxy() spawns
a metadata proxy agent for a network, it will pass router_id
instead of network_id if metadata network is enabled and
a router port is connected to this network.

Later, MetadataDriver will register this uuid (i.e. router_id)
with monitor for the new metadata proxy process.

But when disable_isolated_metadata_proxy() destroys a metadata
proxy agent for a network, it always passes network_id as the uuid.
Thus MetadataDriver can not find the matching process. So the
corresponding metadata proxy agent can not be destroyed.

Closes-bug: #1526084
Change-Id: Icab94f4e09e95fa6729c458522a3fe50e850a4be
neutron/agent/dhcp/agent.py
neutron/tests/unit/agent/dhcp/test_agent.py