summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova_git.bb
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-03-24 13:18:45 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-03-25 09:56:15 -0400
commitdfc85232382af8fee180a83bd33f9d436557b774 (patch)
treeb6c2fc333b7ce925cab83111b206009ca0fb5a2d /meta-openstack/recipes-devtools/python/python-nova_git.bb
parent809be55f0d276c59a8f71bb62f65fcdecede71b0 (diff)
downloadmeta-cloud-services-dfc85232382af8fee180a83bd33f9d436557b774.tar.gz
OpenStack: modify controller to be able to talk to both console
We modify the controller so that both vnc and spice html5 proxies are running. Since in the current recipe, both controller and compute share the same nova.conf file, in the compute, both vnc and spice html5 are set to enabled and in this configuration, vnc is chosen (in source: vnc is chosen because it's better tested). To change to spice, only change required is on the compute side. The controller (since the default console_type is auto) will try to talk to both and run whichever is available. Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_git.bb13
1 files changed, 1 insertions, 12 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb
index 17712d5..0a70aca 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb
@@ -20,11 +20,9 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \
20 20
21SRC_URI += "file://nova-all \ 21SRC_URI += "file://nova-all \
22 file://nova.init \ 22 file://nova.init \
23 file://nova-console.init \
24 file://nova-consoleauth \ 23 file://nova-consoleauth \
25 file://nova.conf \ 24 file://nova.conf \
26 file://openrc \ 25 file://openrc \
27 file://nova-consoleproxy \
28 " 26 "
29SRCREV="afc9e4e23327fb566e8ade2c0c06c90d369c9e29" 27SRCREV="afc9e4e23327fb566e8ade2c0c06c90d369c9e29"
30PV="2013.2.2+git${SRCPV}" 28PV="2013.2.2+git${SRCPV}"
@@ -109,21 +107,13 @@ do_install_append() {
109 install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all 107 install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all
110 install -m 0755 ${WORKDIR}/nova-consoleauth ${D}${sysconfdir}/init.d/nova-consoleauth 108 install -m 0755 ${WORKDIR}/nova-consoleauth ${D}${sysconfdir}/init.d/nova-consoleauth
111 109
112 for binary in api compute network scheduler cert conductor; do 110 for binary in api compute network scheduler cert conductor novncproxy spicehtml5proxy; do
113 sed "s:@suffix@:$binary:" < ${WORKDIR}/nova.init >${WORKDIR}/nova-$binary.init.sh 111 sed "s:@suffix@:$binary:" < ${WORKDIR}/nova.init >${WORKDIR}/nova-$binary.init.sh
114 install -m 0755 ${WORKDIR}/nova-$binary.init.sh ${D}${sysconfdir}/init.d/nova-$binary 112 install -m 0755 ${WORKDIR}/nova-$binary.init.sh ${D}${sysconfdir}/init.d/nova-$binary
115 done 113 done
116 for binary in novncproxy spicehtml5proxy; do
117 proxy_type=`echo $binary | sed -e 's/proxy//;'`
118 sed "s:@suffix@:$binary:" < ${WORKDIR}/nova-console.init | \
119 sed "s:@proxy_type@:$proxy_type:" >${WORKDIR}/nova-$binary.init.sh
120 install -m 0755 ${WORKDIR}/nova-$binary.init.sh ${D}${sysconfdir}/init.d/nova-$binary
121 done
122 fi 114 fi
123 115
124 cp run_tests.sh ${NOVA_CONF_DIR} 116 cp run_tests.sh ${NOVA_CONF_DIR}
125
126 install -D -o nova -m 664 ${WORKDIR}/nova-consoleproxy ${D}${sysconfdir}/default/nova-consoleproxy
127} 117}
128 118
129pkg_postinst_${SRCNAME}-setup () { 119pkg_postinst_${SRCNAME}-setup () {
@@ -196,7 +186,6 @@ FILES_${SRCNAME}-novncproxy = " \
196" 186"
197FILES_${SRCNAME}-spicehtml5proxy = " \ 187FILES_${SRCNAME}-spicehtml5proxy = " \
198 ${sysconfdir}/init.d/nova-spicehtml5proxy \ 188 ${sysconfdir}/init.d/nova-spicehtml5proxy \
199 ${sysconfdir}/default/nova-consoleproxy \
200" 189"
201FILES_${SRCNAME}-network = " \ 190FILES_${SRCNAME}-network = " \
202 ${sysconfdir}/init.d/nova-network \ 191 ${sysconfdir}/init.d/nova-network \