Author: Daniel Alvarez <dalva...@redhat.com>
Date: Mon Mar 5 18:05:54 2018 +0100
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
This patch fixes it by updating the isolated metadata proxy on
and port_delete_end methods which are invoked every time a router interface
port is added, updated or deleted.
Signed-off-by: Daniel Alvarez <dalva...@redhat.com>
** Changed in: neutron
Status: In Progress => Fix Released
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
When isolated metadata is enabled, metadata proxy doesn't get
automatically started/stopped when needed
Status in neutron:
When enabled_isolated_metadata option is set to True in DHCP agent
configuration, the metadata proxy instances won't get started
dynamically when the network gets isolated. Similarly, when a subnet
is added to the router, they don't get stopped if they were already
1. Create a network, a subnet and a router.
2. Check that there's a proxy instance running in the DHCP namespace for this
neutron 800009 1 0 17:01 ? 00:00:00 haproxy -f
3. Attach the subnet to the router.
4. Verify that the proxy instance is still running.
5. Restart DHCP agent
6. Verify that the proxy instance went away (since the network is not
7. Remove the subnet from the router.
8. Verify that the proxy instance has not been spawned.
At this point, booting any VM on the network will fail since it won't be able
to fetch metadata.
However, any update on the network/subnet will trigger the agent to refresh
the status of the isolated metadata proxy:
For example: openstack network set <net_uuid> --name foo
would trigger that DHCP agent spawns the proxy for that network.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : email@example.com
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp