diff options
author | Andy Ning <andy.ning@windriver.com> | 2014-06-13 11:21:16 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-06-18 15:08:11 -0400 |
commit | 9b966a64a3bbf50f4661d4d8adac2a56794db5cb (patch) | |
tree | e664e1f8f29bae43f32cc50857c727005eb12198 /meta-openstack/recipes-devtools/python/python-nova | |
parent | b53f039deee13fe869aaceca27d4e30cd40efb48 (diff) | |
download | meta-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.conf | 6 |
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 | |||
73 | rbd_user=cinder-volume | 73 | rbd_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 | ||
79 | service_neutron_metadata_proxy = true | ||
80 | neutron_metadata_proxy_shared_secret=%METADATA_SHARED_SECRET% | ||
81 | |||
76 | [spice] | 82 | [spice] |
77 | agent_enabled=True | 83 | agent_enabled=True |
78 | enabled=True | 84 | enabled=True |