From 9b966a64a3bbf50f4661d4d8adac2a56794db5cb Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Fri, 13 Jun 2014 11:21:16 -0400 Subject: Add metadata service support to controller node The metadata service is working as the following: - metadata is being served by nova-api on controller at port 8775. - VM instance requests metadata by 169.254.169.254 (eg, curl http://169.254.169.254/latest/meta-data) - metadata request comes to neutron-ns-metadata-proxy on controller in dhcp network name space. - neutron-ns-metadata-proxy forwards the request to neutron-metadata-agent through a unix domain socket (/var/lib/neutron/metadata_proxy). - neutron-metadata-agent sends the request to nova-api on port 8775 to be serviced. To support metadata service, neutron-ns-metadata-proxy is baked into the controller image. Also neutron-metadata-agent startup script (/etc/init.d/neutron-metadata-agent) and config file (/etc/neutron/metadata_agent.ini) are added to start up metadata agent at system initialization. dhcp_agent.ini and nova.conf are updated as well. A README.metadata is added in the Documentation/ directory. Signed-off-by: Andy Ning Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-nova/nova.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta-openstack/recipes-devtools/python/python-nova') diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova.conf b/meta-openstack/recipes-devtools/python/python-nova/nova.conf index 35eed8b..fbaaa78 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova.conf +++ b/meta-openstack/recipes-devtools/python/python-nova/nova.conf @@ -73,6 +73,12 @@ libvirt_images_rbd_ceph_conf=/etc/ceph/ceph.conf rbd_user=cinder-volume #rbd_secret_uuid= +# nova-api configuration for metadata +# neutron_metadata_proxy_shared_secret must match +# metadata_proxy_shared_secret in metadata_agent.ini +service_neutron_metadata_proxy = true +neutron_metadata_proxy_shared_secret=%METADATA_SHARED_SECRET% + [spice] agent_enabled=True enabled=True -- cgit v1.2.3-54-g00ecf