summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-10-31 00:22:52 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-11-25 15:25:34 -0500
commita5a59d040b5db77a06346a516d30566a21d41586 (patch)
tree4de8d0e5f26396e1a66f668eec38d7b3bbb1465f /meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb
parent0a962a285a529def3d3649544214bc36c9292d18 (diff)
downloadmeta-cloud-services-a5a59d040b5db77a06346a516d30566a21d41586.tar.gz
python-quantum/python-neutron: update to havana version
Updating the OpenStack networking component to the havana release version. As part of this switch, we rename the components from quantum to neutron and switch to a git based build for the client and servers. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb192
1 files changed, 0 insertions, 192 deletions
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
deleted file mode 100644
index 8198e6a..0000000
--- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb
+++ /dev/null
@@ -1,192 +0,0 @@
1DESCRIPTION = "Quantum (virtual network service)"
2HOMEPAGE = "https://launchpad.net/quantum"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
6
7PR = "r0"
8SRCNAME = "quantum"
9
10SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \
11 file://ovs_quantum_plugin.ini \
12 file://linuxbridge_conf.ini \
13 file://quantum-server.init \
14 file://quantum-agent.init \
15 "
16
17SRC_URI[md5sum] = "ca410283029db2cade16c8af003f9b7f"
18SRC_URI[sha256sum] = "79e60ec1aef800da3a4e1841909cdd8b2cf645979d08f27bc481957c7944e93d"
19
20
21S = "${WORKDIR}/${SRCNAME}-${PV}"
22
23inherit setuptools update-rc.d identity hosts
24
25do_install_append() {
26 TEMPLATE_CONF_DIR=${S}${sysconfdir}/
27 QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum
28
29 sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \
30 ${TEMPLATE_CONF_DIR}/quantum.conf > ${WORKDIR}/quantum.conf
31 sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/quantum.conf
32 sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \
33 -i ${WORKDIR}/quantum.conf
34 sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \
35 -i ${WORKDIR}/quantum.conf
36
37 echo "rabbit_host = ${CONTROLLER_IP}" >> ${WORKDIR}/quantum.conf
38
39 for file in ovs_quantum_plugin.ini linuxbridge_conf.ini
40 do
41 sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/${file}
42 sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/${file}
43 sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/${file}
44 sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${WORKDIR}/${file}
45 done
46
47 install -d ${QUANTUM_CONF_DIR}
48 install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch
49 install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge
50
51 install -m 600 ${WORKDIR}/quantum.conf ${QUANTUM_CONF_DIR}/
52 install -m 600 ${WORKDIR}/ovs_quantum_plugin.ini ${QUANTUM_CONF_DIR}/plugins/openvswitch/
53 install -m 600 ${WORKDIR}/linuxbridge_conf.ini ${QUANTUM_CONF_DIR}/plugins/linuxbridge/
54 install -m 600 ${S}/etc/api-paste.ini ${QUANTUM_CONF_DIR}/
55 install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/
56
57 install -d ${D}${localstatedir}/log/${SRCNAME}
58
59 PLUGIN=openvswitch
60 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
61 install -d ${D}${sysconfdir}/init.d
62 sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \
63 < ${WORKDIR}/quantum-server.init >${WORKDIR}/quantum-server.init.sh
64 install -m 0755 ${WORKDIR}/quantum-server.init.sh ${D}${sysconfdir}/init.d/quantum-server
65 sed "s:@suffix@:$PLUGIN:" < ${WORKDIR}/quantum-agent.init >${WORKDIR}/quantum-$PLUGIN.init.sh
66 install -m 0755 ${WORKDIR}/quantum-$PLUGIN.init.sh ${D}${sysconfdir}/init.d/quantum-$PLUGIN-agent
67 fi
68}
69
70pkg_postinst_${SRCNAME} () {
71 if [ "x$D" != "x" ]; then
72 exit 1
73 fi
74
75 # This is to make sure postgres is configured and running
76 if ! pidof postmaster > /dev/null; then
77 /etc/init.d/postgresql-init
78 /etc/init.d/postgresql start
79 sleep 5
80 fi
81
82 sudo -u postgres createdb ovs_quantum
83}
84
85pkg_postinst_${SRCNAME}-plugin-openvswitch () {
86 if [ "x$D" != "x" ]; then
87 exit 1
88 fi
89
90 /etc/init.d/openvswitch-switch start
91 ovs-vsctl --no-wait -- --may-exist add-br br-int
92}
93
94PACKAGES += " \
95 ${SRCNAME} \
96 ${SRCNAME}-doc \
97 ${SRCNAME}-server \
98 ${SRCNAME}-plugin-openvswitch \
99 ${SRCNAME}-plugin-linuxbridge \
100 ${SRCNAME}-dhcp-agent \
101 ${SRCNAME}-l3-agent \
102 ${SRCNAME}-metadata-agent \
103 ${SRCNAME}-extra-agents \
104 "
105
106FILES_${PN} = "${libdir}/*"
107
108FILES_${SRCNAME} = " \
109 ${bindir}/quantum-db-manage \
110 ${bindir}/quantum-rootwrap \
111 ${bindir}/quantum-debug \
112 ${bindir}/quantum-netns-cleanup \
113 ${bindir}/quantum-ovs-cleanup \
114 ${sysconfdir}/${SRCNAME}/* \
115 ${localstatedir}/* \
116 "
117
118FILES_${SRCNAME}-server = "${bindir}/quantum-server \
119 ${sysconfdir}/init.d/quantum-server \
120 "
121
122FILES_${SRCNAME}-plugin-openvswitch = " \
123 ${bindir}/quantum-openvswitch-agent \
124 ${sysconfdir}/${SRCNAME}/plugins/openvswitch/ovs_quantum_plugin.ini \
125 ${sysconfdir}/init.d/quantum-openvswitch-agent \
126 "
127
128FILES_${SRCNAME}-plugin-linuxbridge = " \
129 ${bindir}/quantum-linuxbridge-agent \
130 ${sysconfdir}/${SRCNAME}/plugins/linuxbridge/linuxbridge_conf.ini \
131 ${sysconfdir}/init.d/quantum-linuxbridge-agent \
132 "
133
134FILES_${SRCNAME}-dhcp-agent = "${bindir}/quantum-dhcp-agent \
135 ${bindir}/quantum-dhcp-agent-dnsmasq-lease-update \
136 ${sysconfdir}/${SRCNAME}/dhcp_agent.ini \
137 ${sysconfdir}/init.d/dhcp_agent \
138 "
139
140FILES_${SRCNAME}-l3-agent = "${bindir}/quantum-l3-agent \
141 ${sysconfdir}/${SRCNAME}/l3_agent.ini \
142 ${sysconfdir}/init.d/l3_agent \
143 "
144
145FILES_${SRCNAME}-metadata-agent = "${bindir}/quantum-metadata-agent \
146 ${sysconfdir}/${SRCNAME}/metadata_agent.ini \
147 ${sysconfdir}/init.d/metadata_agent \
148 "
149
150FILES_${SRCNAME}-extra-agents = "${bindir}/*"
151
152FILES_${SRCNAME}-doc = "${datadir}/*"
153
154RDEPENDS_${PN} += "python-paste \
155 python-pastedeploy \
156 python-routes \
157 python-amqplib \
158 python-anyjson \
159 python-alembic \
160 python-eventlet \
161 python-greenlet \
162 python-httplib2 \
163 python-iso8601 \
164 python-kombu \
165 python-netaddr \
166 python-quantumclient \
167 python-sqlalchemy \
168 python-webob \
169 python-keystoneclient \
170 python-oslo.config \
171 python-pyudev \
172 python-novaclient \
173 python-mako \
174 python-markupsafe \
175 python-pyparsing \
176 "
177
178RDEPENDS_${SRCNAME} = "${PN} \
179 postgresql postgresql-client python-psycopg2"
180
181RDEPENDS_${SRCNAME}-server = "${SRCNAME}"
182RDEPENDS_${SRCNAME}-plugin-openvswitch = "${SRCNAME} openvswitch-switch "
183RDEPENDS_${SRCNAME}-plugin-linuxbridge = "${SRCNAME} bridge-utils"
184RDEPENDS_${SRCNAME}-dhcp-agent = "${SRCNAME} dnsmasq"
185RDEPENDS_${SRCNAME}-l3-agent = "${SRCNAME} ${SRCNAME}-metadata-agent iputils"
186
187RRECOMMENDS_${SRCNAME}-server = "${SRCNAME}-plugin-openvswitch"
188
189INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge"
190INITSCRIPT_NAME_${SRCNAME}-server = "quantum-server"
191INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "quantum-openvswitch-agent"
192INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "quantum-linuxbridge-agent"