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:37 -0400 |
| commit | c030ef7f8c2a15f7c7d0faa7122d99b853133e9f (patch) | |
| tree | c45413abdf3bf0e703614c4f5ff6df2317a432d4 /meta-openstack/recipes-devtools/python/python-nova | |
| parent | d4843bbf0b3d2c7019be1d67c174a9826e69e41a (diff) | |
| download | meta-cloud-services-c030ef7f8c2a15f7c7d0faa7122d99b853133e9f.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 d763a8b..fadddca 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova.conf +++ b/meta-openstack/recipes-devtools/python/python-nova/nova.conf | |||
| @@ -69,6 +69,12 @@ libvirt_images_rbd_ceph_conf=/etc/ceph/ceph.conf | |||
| 69 | rbd_user=cinder-volume | 69 | rbd_user=cinder-volume |
| 70 | #rbd_secret_uuid= | 70 | #rbd_secret_uuid= |
| 71 | 71 | ||
| 72 | # nova-api configuration for metadata | ||
| 73 | # neutron_metadata_proxy_shared_secret must match | ||
| 74 | # metadata_proxy_shared_secret in metadata_agent.ini | ||
| 75 | service_neutron_metadata_proxy = true | ||
| 76 | neutron_metadata_proxy_shared_secret=%METADATA_SHARED_SECRET% | ||
| 77 | |||
| 72 | [spice] | 78 | [spice] |
| 73 | agent_enabled=True | 79 | agent_enabled=True |
| 74 | enabled=True | 80 | enabled=True |
