]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add metadata support for nvp plugin without namespaces
authorAaron Rosen <arosen@nicira.com>
Fri, 15 Mar 2013 21:45:42 +0000 (14:45 -0700)
committerAaron Rosen <arosen@nicira.com>
Tue, 26 Mar 2013 00:52:17 +0000 (17:52 -0700)
commit891a860d58e651812bb4aa978946159fac3b709a
treeaf22359f10a96c529741cc8c78c216a565cc0293
parent9143a83dc83f40d39f941bbc685f6f9338d5a1cd
Add metadata support for nvp plugin without namespaces

If using a host that does not support namespaces the nvp plugin did not have
a way to leverage metadata unless using enable_isolated_metadata which
requires a subnet to not have a gateway. This patch changes the metadata
configuration for the NVP plugin by adding a flag metadata which can be
set to access_network (which was previously enable_metadata_access_network)
or dhcp_host_route. When set to dhcp_host_route when the dhcp agent creates
it's port a host_route is added towards the dhcp server's ip for the
destination 169.254.169.254/32 only if the subnet has as gatway_ip.
In order for a host to leverage metadata via dhcp_route_route it requires
the host's dhcp client to support host routes (code 121).

Fixes bug 1155786

Change-Id: I2ff52adc3dfebcdd6d9c05d5dc79aa65ae100c74
etc/quantum/plugins/nicira/nvp.ini
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
quantum/plugins/nicira/nicira_nvp_plugin/common/config.py
quantum/plugins/nicira/nicira_nvp_plugin/common/metadata_access.py
quantum/tests/unit/nicira/test_nicira_plugin.py