yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #71508
[Bug 1753540] [NEW] When isolated/force metadata is enabled, metadata proxy doesn't get automatically started/stopped when needed
Public bug reported:
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
running.
100% reproducible:
With enable_isolated_metadata=True:
1. Create a network, a subnet and a router.
2. Check that there's a proxy instance running in the DHCP namespace for this network:
neutron 800009 1 0 17:01 ? 00:00:00 haproxy -f
/var/lib/neutron/ns-metadata-
proxy/9d1c7905-a887-419a-a885-9b07c20c2012.conf
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 isolated).
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.
** Affects: neutron
Importance: Undecided
Assignee: Daniel Alvarez (dalvarezs)
Status: In Progress
** Changed in: neutron
Assignee: (unassigned) => Daniel Alvarez (dalvarezs)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1753540
Title:
When isolated/force metadata is enabled, metadata proxy doesn't get
automatically started/stopped when needed
Status in neutron:
In Progress
Bug description:
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
running.
100% reproducible:
With enable_isolated_metadata=True:
1. Create a network, a subnet and a router.
2. Check that there's a proxy instance running in the DHCP namespace for this network:
neutron 800009 1 0 17:01 ? 00:00:00 haproxy -f
/var/lib/neutron/ns-metadata-
proxy/9d1c7905-a887-419a-a885-9b07c20c2012.conf
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 isolated).
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:
https://bugs.launchpad.net/neutron/+bug/1753540/+subscriptions
Follow ups