summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini1
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron/metadata_agent.ini29
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron_git.bb24
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/nova.conf6
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_git.bb2
5 files changed, 60 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini b/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
index f9b1523..7cc648f 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
+++ b/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
@@ -37,6 +37,7 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
37# be activated when the subnet does not contain any router port. The guest 37# be activated when the subnet does not contain any router port. The guest
38# instance must be configured to request host routes via DHCP (Option 121). 38# instance must be configured to request host routes via DHCP (Option 121).
39# enable_isolated_metadata = False 39# enable_isolated_metadata = False
40enable_isolated_metadata = True
40 41
41# Allows for serving metadata requests coming from a dedicated metadata 42# Allows for serving metadata requests coming from a dedicated metadata
42# access network whose cidr is 169.254.169.254/16 (or larger prefix), and 43# access network whose cidr is 169.254.169.254/16 (or larger prefix), and
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/metadata_agent.ini b/meta-openstack/recipes-devtools/python/python-neutron/metadata_agent.ini
new file mode 100644
index 0000000..98d958d
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-neutron/metadata_agent.ini
@@ -0,0 +1,29 @@
1[DEFAULT]
2# Show debugging output in log (sets DEBUG log level output)
3# debug = True
4
5# The Neutron user information for accessing the Neutron API.
6auth_url = http://localhost:5000/v2.0
7auth_region = RegionOne
8admin_tenant_name = %SERVICE_TENANT_NAME%
9admin_user = %SERVICE_USER%
10admin_password = %SERVICE_PASSWORD%
11
12# Network service endpoint type to pull from the keystone catalog
13# endpoint_type = adminURL
14
15# IP address used by Nova metadata server
16# nova_metadata_ip = 127.0.0.1
17
18# TCP Port used by Nova metadata server
19# nova_metadata_port = 8775
20
21# When proxying metadata requests, Neutron signs the Instance-ID header with a
22# shared secret to prevent spoofing. You may select any string for a secret,
23# but it must match here and in the configuration used by the Nova Metadata
24# Server. NOTE: Nova uses a different key: neutron_metadata_proxy_shared_secret
25# metadata_proxy_shared_secret =
26metadata_proxy_shared_secret = %METADATA_SHARED_SECRET%
27
28# Location of Metadata Proxy UNIX domain socket
29# metadata_proxy_socket = $state_path/metadata_proxy
diff --git a/meta-openstack/recipes-devtools/python/python-neutron_git.bb b/meta-openstack/recipes-devtools/python/python-neutron_git.bb
index 4cf4751..2a581ca 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-neutron_git.bb
@@ -14,6 +14,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
14 file://neutron-agent.init \ 14 file://neutron-agent.init \
15 file://l3_agent.ini \ 15 file://l3_agent.ini \
16 file://dhcp_agent.ini \ 16 file://dhcp_agent.ini \
17 file://metadata_agent.ini \
17 file://neutron-dhcp-agent-netns-cleanup.cron \ 18 file://neutron-dhcp-agent-netns-cleanup.cron \
18 " 19 "
19SRCREV="a8417d78c2675a2ceb5dbfcee70948a88d69e747" 20SRCREV="a8417d78c2675a2ceb5dbfcee70948a88d69e747"
@@ -84,6 +85,22 @@ do_install_append() {
84 install -m 0755 ${WORKDIR}/neutron-$AGENT.init.sh ${D}${sysconfdir}/init.d/neutron-$AGENT-agent 85 install -m 0755 ${WORKDIR}/neutron-$AGENT.init.sh ${D}${sysconfdir}/init.d/neutron-$AGENT-agent
85 install -m 600 ${WORKDIR}/${AGENT}_agent.ini ${NEUTRON_CONF_DIR}/ 86 install -m 600 ${WORKDIR}/${AGENT}_agent.ini ${NEUTRON_CONF_DIR}/
86 fi 87 fi
88
89 AGENT=metadata
90 ARGS="--config-file=${sysconfdir}/${SRCNAME}/neutron.conf --config-file=${sysconfdir}/${SRCNAME}/metadata_agent.ini"
91 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
92 sed "s:@suffix@:$AGENT:;s:@args@:$ARGS:" < ${WORKDIR}/neutron-agent.init >${WORKDIR}/neutron-$AGENT.init.sh
93 install -m 0755 ${WORKDIR}/neutron-$AGENT.init.sh ${D}${sysconfdir}/init.d/neutron-$AGENT-agent
94 install -m 600 ${WORKDIR}/${AGENT}_agent.ini ${NEUTRON_CONF_DIR}/
95 fi
96 sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \
97 -i ${NEUTRON_CONF_DIR}/metadata_agent.ini
98 sed -e "s:%SERVICE_USER%:${SRCNAME}:g" \
99 -i ${NEUTRON_CONF_DIR}/metadata_agent.ini
100 sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \
101 -i ${NEUTRON_CONF_DIR}/metadata_agent.ini
102 sed -e "s:%METADATA_SHARED_SECRET%:${METADATA_SHARED_SECRET}:g" \
103 -i ${NEUTRON_CONF_DIR}/metadata_agent.ini
87 104
88 cp run_tests.sh ${NEUTRON_CONF_DIR} 105 cp run_tests.sh ${NEUTRON_CONF_DIR}
89} 106}
@@ -175,8 +192,9 @@ FILES_${SRCNAME}-l3-agent = "${bindir}/neutron-l3-agent \
175 " 192 "
176 193
177FILES_${SRCNAME}-metadata-agent = "${bindir}/neutron-metadata-agent \ 194FILES_${SRCNAME}-metadata-agent = "${bindir}/neutron-metadata-agent \
195 ${bindir}/neutron-ns-metadata-proxy \
178 ${sysconfdir}/${SRCNAME}/metadata_agent.ini \ 196 ${sysconfdir}/${SRCNAME}/metadata_agent.ini \
179 ${sysconfdir}/init.d/metadata_agent \ 197 ${sysconfdir}/init.d/neutron-metadata-agent \
180 " 198 "
181 199
182FILES_${SRCNAME}-extra-agents = "${bindir}/*" 200FILES_${SRCNAME}-extra-agents = "${bindir}/*"
@@ -226,7 +244,7 @@ RDEPENDS_${SRCNAME}-setup = "postgresql sudo"
226 244
227RRECOMMENDS_${SRCNAME}-server = "${SRCNAME}-plugin-openvswitch" 245RRECOMMENDS_${SRCNAME}-server = "${SRCNAME}-plugin-openvswitch"
228 246
229INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge ${SRCNAME}-dhcp-agent ${SRCNAME}-l3-agent" 247INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge ${SRCNAME}-dhcp-agent ${SRCNAME}-l3-agent ${SRCNAME}-metadata-agent"
230INITSCRIPT_NAME_${SRCNAME}-server = "neutron-server" 248INITSCRIPT_NAME_${SRCNAME}-server = "neutron-server"
231INITSCRIPT_PARAMS_${SRCNAME}-server = "${OS_DEFAULT_INITSCRIPT_PARAMS}" 249INITSCRIPT_PARAMS_${SRCNAME}-server = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
232INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "neutron-openvswitch-agent" 250INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "neutron-openvswitch-agent"
@@ -237,3 +255,5 @@ INITSCRIPT_NAME_${SRCNAME}-dhcp-agent = "neutron-dhcp-agent"
237INITSCRIPT_PARAMS_${SRCNAME}-dhcp-agent = "${OS_DEFAULT_INITSCRIPT_PARAMS}" 255INITSCRIPT_PARAMS_${SRCNAME}-dhcp-agent = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
238INITSCRIPT_NAME_${SRCNAME}-l3-agent = "neutron-l3-agent" 256INITSCRIPT_NAME_${SRCNAME}-l3-agent = "neutron-l3-agent"
239INITSCRIPT_PARAMS_${SRCNAME}-l3-agent = "${OS_DEFAULT_INITSCRIPT_PARAMS}" 257INITSCRIPT_PARAMS_${SRCNAME}-l3-agent = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
258INITSCRIPT_NAME_${SRCNAME}-metadata-agent = "neutron-metadata-agent"
259INITSCRIPT_PARAMS_${SRCNAME}-metadata-agent = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
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
69rbd_user=cinder-volume 69rbd_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
75service_neutron_metadata_proxy = true
76neutron_metadata_proxy_shared_secret=%METADATA_SHARED_SECRET%
77
72[spice] 78[spice]
73agent_enabled=True 79agent_enabled=True
74enabled=True 80enabled=True
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb
index a1c7a53..9405123 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb
@@ -83,6 +83,8 @@ do_install_append() {
83 sed -e "s:%DB_USER%:${DB_USER}:g" -i ${NOVA_CONF_DIR}/nova.conf 83 sed -e "s:%DB_USER%:${DB_USER}:g" -i ${NOVA_CONF_DIR}/nova.conf
84 sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${NOVA_CONF_DIR}/nova.conf 84 sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${NOVA_CONF_DIR}/nova.conf
85 85
86 sed -e "s:%METADATA_SHARED_SECRET%:${METADATA_SHARED_SECRET}:g" -i ${NOVA_CONF_DIR}/nova.conf
87
86 sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${NOVA_CONF_DIR}/nova.conf 88 sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${NOVA_CONF_DIR}/nova.conf
87 sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${NOVA_CONF_DIR}/nova.conf 89 sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${NOVA_CONF_DIR}/nova.conf
88 90