From 073282167ecd554a38cdb738780bbab5c2770738 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 2 Oct 2013 09:39:00 -0400 Subject: quantum: configuration and packaging updates For proper operation of quantum in both a control and compute node, the following items are required: - The controller IP set to the rabbit_host - Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-quantum_2013.1.3.bb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb') diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb index 1c8b96f..70094f1 100644 --- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb +++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb @@ -34,10 +34,14 @@ do_install_append() { sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \ -i ${WORKDIR}/quantum.conf + echo "rabbit_host = ${CONTROLLER_EXTERNAL_IP}" >> ${WORKDIR}/quantum.conf + for file in ovs_quantum_plugin.ini linuxbridge_conf.ini do sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/${file} sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/${file} + sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/${file} + sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${WORKDIR}/${file} done install -d ${QUANTUM_CONF_DIR} @@ -50,6 +54,8 @@ do_install_append() { install -m 600 ${S}/etc/api-paste.ini ${QUANTUM_CONF_DIR}/ install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ + install -d ${D}${localstatedir}/log/${SRCNAME} + PLUGIN=openvswitch if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d @@ -106,7 +112,9 @@ FILES_${SRCNAME} = " \ ${bindir}/quantum-debug \ ${bindir}/quantum-netns-cleanup \ ${bindir}/quantum-ovs-cleanup \ - ${sysconfdir}/${SRCNAME}/* " + ${sysconfdir}/${SRCNAME}/* \ + ${localstatedir}/* \ + " FILES_${SRCNAME}-server = "${bindir}/quantum-server \ ${sysconfdir}/init.d/quantum-server \ @@ -125,6 +133,7 @@ FILES_${SRCNAME}-plugin-linuxbridge = " \ " FILES_${SRCNAME}-dhcp-agent = "${bindir}/quantum-dhcp-agent \ + ${bindir}/quantum-dhcp-agent-dnsmasq-lease-update \ ${sysconfdir}/${SRCNAME}/dhcp_agent.ini \ ${sysconfdir}/init.d/dhcp_agent \ " -- cgit v1.2.3-54-g00ecf