summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova/nova-all
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2018-04-04 16:02:56 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-04-09 10:48:37 -0400
commite7b4a0b965bb40861a487c13199755044919472a (patch)
tree740373e9594abbadd846279582c596cc9e2607dd /meta-openstack/recipes-devtools/python/python-nova/nova-all
parentc87a3d517bd49b1e915ba9bb3f20bfc86d239dbc (diff)
downloadmeta-cloud-services-e7b4a0b965bb40861a487c13199755044919472a.tar.gz
python-nova: uprev to latest openstack sable/pike release
This requires several new recipes and package uprevs (python-tooz, python-os-brick, python-pypowervm, python-networkx, python-microversion-parse, python-os-win, python-os-vif, and python-os-traits). Along with updates to make things work with systemd. We also take steps to make setup/init use the directions from https://docs.openstack.org/nova/pike/install/controller-install-ubuntu.html After these changes we can validate that nova is operating nominally using the command: +-------+--------------------------------------+ | Name | UUID | +-------+--------------------------------------+ | cell0 | 00000000-0000-0000-0000-000000000000 | | cell1 | f547fa04-7c82-4498-95ee-210fc40abdb6 | +-------+--------------------------------------+ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova/nova-all')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova/nova-all93
1 files changed, 0 insertions, 93 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova-all b/meta-openstack/recipes-devtools/python/python-nova/nova-all
deleted file mode 100644
index 914b714..0000000
--- a/meta-openstack/recipes-devtools/python/python-nova/nova-all
+++ /dev/null
@@ -1,93 +0,0 @@
1#!/bin/sh
2
3### BEGIN INIT INFO
4# Provides: nova-all
5# Required-Start: $remote_fs $syslog
6# Required-Stop: $remote_fs $syslog
7# Should-Start: postgresql rabbitmq-server
8# Should-Stop: postgresql rabbitmq-server
9# Default-Start: 3 5
10# Default-Stop: 0 1 2 6
11# Short-Description: OpenStack Compute (Nova)
12# Description: OpenStack Compute (Nova)
13### END INIT INFO
14
15DESC="all nova services"
16DAEMON="/usr/bin/nova-all"
17PIDFILE="/var/run/nova-all.pid"
18
19start ()
20{
21 if [ -e $PIDFILE ]; then
22 PIDDIR=/proc/$(cat $PIDFILE)
23 if [ -d ${PIDDIR} ]; then
24 echo "$DESC already running."
25 exit 1
26 else
27 echo "Removing stale PID file $PIDFILE"
28 rm -f $PIDFILE
29 fi
30 fi
31
32 if [ ! -d /var/log/nova ]; then
33 mkdir /var/log/nova
34 fi
35
36 echo -n "Starting $DESC..."
37
38 start-stop-daemon --start --quiet --background \
39 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \
40 -- --log-dir=/var/log/nova
41
42 if [ $? -eq 0 ]; then
43 echo "done."
44 else
45 echo "failed."
46 fi
47}
48
49stop ()
50{
51 echo -n "Stopping $DESC..."
52 start-stop-daemon --stop --quiet --pidfile $PIDFILE
53 if [ $? -eq 0 ]; then
54 echo "done."
55 else
56 echo "failed."
57 fi
58 rm -f $PIDFILE
59}
60
61status()
62{
63 pid=`cat $PIDFILE 2>/dev/null`
64 if [ -n "$pid" ]; then
65 if ps -p $pid > /dev/null 2>&1 ; then
66 echo "$DESC is running"
67 return
68 fi
69 fi
70 echo "$DESC is not running"
71}
72
73case "$1" in
74 start)
75 start
76 ;;
77 stop)
78 stop
79 ;;
80 restart|force-reload|reload)
81 stop
82 start
83 ;;
84 status)
85 status
86 ;;
87 *)
88 echo "Usage: $0 {start|stop|force-reload|restart|reload|status}"
89 exit 1
90 ;;
91esac
92
93exit 0