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-21 17:07:29 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-03-24 16:53:27 -0400
commitec4dd1f12eff5aab513845cafa87fbec8166adff (patch)
tree2bf84a9d4fe46723ea8c08168e09a87d455c9447 /meta-openstack/recipes-devtools/python/python-nova_git.bb
parent6423ced4885488dbe8cc05249d7d16cbcfe750c2 (diff)
downloadmeta-cloud-services-ec4dd1f12eff5aab513845cafa87fbec8166adff.tar.gz
OpenStack: nova-novncproxy:can't stop this service
nova-novncproxy and nova-spicehtml5proxy both do not check to see if the process specified in PIDFILE exists before firing off a new one. Both initrd files can actually use nova.init (used for the many other nova-* daemons) nova-consoleauth also has this issue, we add a check in start to see if the process in PIDFILE exists and exits if it does. Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@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.bb11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb
index 427c167..17712d5 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb
@@ -20,9 +20,8 @@ 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 \
23 file://nova-consoleauth \ 24 file://nova-consoleauth \
24 file://nova-novncproxy \
25 file://nova-spicehtml5proxy \
26 file://nova.conf \ 25 file://nova.conf \
27 file://openrc \ 26 file://openrc \
28 file://nova-consoleproxy \ 27 file://nova-consoleproxy \
@@ -109,13 +108,17 @@ do_install_append() {
109 # nova-all is installed (and packaged), but not used as an initscript by default 108 # nova-all is installed (and packaged), but not used as an initscript by default
110 install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all 109 install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all
111 install -m 0755 ${WORKDIR}/nova-consoleauth ${D}${sysconfdir}/init.d/nova-consoleauth 110 install -m 0755 ${WORKDIR}/nova-consoleauth ${D}${sysconfdir}/init.d/nova-consoleauth
112 install -m 0755 ${WORKDIR}/nova-novncproxy ${D}${sysconfdir}/init.d/nova-novncproxy
113 install -m 0755 ${WORKDIR}/nova-spicehtml5proxy ${D}${sysconfdir}/init.d/nova-spicehtml5proxy
114 111
115 for binary in api compute network scheduler cert conductor; do 112 for binary in api compute network scheduler cert conductor; do
116 sed "s:@suffix@:$binary:" < ${WORKDIR}/nova.init >${WORKDIR}/nova-$binary.init.sh 113 sed "s:@suffix@:$binary:" < ${WORKDIR}/nova.init >${WORKDIR}/nova-$binary.init.sh
117 install -m 0755 ${WORKDIR}/nova-$binary.init.sh ${D}${sysconfdir}/init.d/nova-$binary 114 install -m 0755 ${WORKDIR}/nova-$binary.init.sh ${D}${sysconfdir}/init.d/nova-$binary
118 done 115 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
119 fi 122 fi
120 123
121 cp run_tests.sh ${NOVA_CONF_DIR} 124 cp run_tests.sh ${NOVA_CONF_DIR}