summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova
diff options
context:
space:
mode:
authorAndy Ning <andy.ning@windriver.com>2014-06-13 11:21:16 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-06-18 15:08:11 -0400
commit9b966a64a3bbf50f4661d4d8adac2a56794db5cb (patch)
treee664e1f8f29bae43f32cc50857c727005eb12198 /meta-openstack/recipes-devtools/python/python-nova
parentb53f039deee13fe869aaceca27d4e30cd40efb48 (diff)
downloadmeta-cloud-services-9b966a64a3bbf50f4661d4d8adac2a56794db5cb.tar.gz
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 <andy.ning@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/nova.conf6
1 files changed, 6 insertions, 0 deletions
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
73rbd_user=cinder-volume 73rbd_user=cinder-volume
74#rbd_secret_uuid= 74#rbd_secret_uuid=
75 75
76# nova-api configuration for metadata
77# neutron_metadata_proxy_shared_secret must match
78# metadata_proxy_shared_secret in metadata_agent.ini
79service_neutron_metadata_proxy = true
80neutron_metadata_proxy_shared_secret=%METADATA_SHARED_SECRET%
81
76[spice] 82[spice]
77agent_enabled=True 83agent_enabled=True
78enabled=True 84enabled=True