diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2018-01-17 10:12:28 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-01-18 10:47:31 -0500 |
| commit | 992463503e844fe40f3bb2a56df5db0cb715942e (patch) | |
| tree | 725e632d5155ac9a79a25cae4781eb9742176b4a /meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init | |
| parent | a49d21ce53618b12ae0b03806fd56f1a8949f243 (diff) | |
| download | meta-cloud-services-992463503e844fe40f3bb2a56df5db0cb715942e.tar.gz | |
python-neutron: uprev to latest stable/pike
Following along with other recent openstack component uprevs the
configuration has been changed to match the installation/setup
configuration documented by the openstack community. We have also made
the switch to using systemd.
The initial configuration file (neutron.conf) was generated by getting
things mostly updated and running, then copying/cloning the source
repo on the target and running the setup scripts (see
./tools/generate_config_file_samples.sh)
With these updates neutron is running and available but is yet to be
fully tested, this must be done once we have a running compute node
and guests.
Required updates/uprevs/introduction to:
python-ryu, python-neutron-lib, python-os-xenapi, python-oslo.privsep,
python-ovs, python-weakrefmethod, and more
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-neutron/neutron-agent.init')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init deleted file mode 100644 index c9d8d72..0000000 --- a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | ### BEGIN INIT INFO | ||
| 4 | # Required-Start: $remote_fs $syslog | ||
| 5 | # Required-Stop: $remote_fs $syslog | ||
| 6 | # Default-Start: 2 3 5 | ||
| 7 | # Default-Stop: 0 1 6 | ||
| 8 | # Description: Quantum networking agent | ||
| 9 | ### END INIT INFO | ||
| 10 | |||
| 11 | SUFFIX=@suffix@ | ||
| 12 | DESC="neutron-$SUFFIX-agent" | ||
| 13 | DAEMON="/usr/bin/neutron-$SUFFIX-agent" | ||
| 14 | PIDFILE="/var/run/neutron-$SUFFIX-agent.pid" | ||
| 15 | DAEMON_ARGS="@args@" | ||
| 16 | |||
| 17 | start() | ||
| 18 | { | ||
| 19 | if [ -e $PIDFILE ]; then | ||
| 20 | PIDDIR=/proc/$(cat $PIDFILE) | ||
| 21 | if [ -d ${PIDDIR} ]; then | ||
| 22 | echo "$DESC already running." | ||
| 23 | exit 1 | ||
| 24 | else | ||
| 25 | echo "Removing stale PID file $PIDFILE" | ||
| 26 | rm -f $PIDFILE | ||
| 27 | fi | ||
| 28 | fi | ||
| 29 | |||
| 30 | if [ ! -d /var/log/neutron ]; then | ||
| 31 | mkdir -p /var/log/neutron | ||
| 32 | fi | ||
| 33 | |||
| 34 | echo -n "Starting $DESC..." | ||
| 35 | |||
| 36 | start-stop-daemon --start --quiet --background \ | ||
| 37 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \ | ||
| 38 | -- ${DAEMON_ARGS} --log-dir=/var/log/neutron | ||
| 39 | |||
| 40 | if [ $? -eq 0 ]; then | ||
| 41 | echo "done." | ||
| 42 | else | ||
| 43 | echo "failed." | ||
| 44 | fi | ||
| 45 | } | ||
| 46 | |||
| 47 | stop() | ||
| 48 | { | ||
| 49 | echo -n "Stopping $DESC..." | ||
| 50 | start-stop-daemon --stop --quiet --pidfile $PIDFILE | ||
| 51 | if [ $? -eq 0 ]; then | ||
| 52 | echo "done." | ||
| 53 | else | ||
| 54 | echo "failed." | ||
| 55 | fi | ||
| 56 | rm -f $PIDFILE | ||
| 57 | } | ||
| 58 | |||
| 59 | status() | ||
| 60 | { | ||
| 61 | pid=`cat $PIDFILE 2>/dev/null` | ||
| 62 | if [ -n "$pid" ]; then | ||
| 63 | if ps -p $pid > /dev/null 2>&1 ; then | ||
| 64 | echo "$DESC is running" | ||
| 65 | return | ||
| 66 | fi | ||
| 67 | fi | ||
| 68 | echo "$DESC is not running" | ||
| 69 | } | ||
| 70 | |||
| 71 | case "$1" in | ||
| 72 | start) | ||
| 73 | start | ||
| 74 | ;; | ||
| 75 | stop) | ||
| 76 | stop | ||
| 77 | ;; | ||
| 78 | restart|force-reload|reload|reset) | ||
| 79 | stop | ||
| 80 | start | ||
| 81 | ;; | ||
| 82 | status) | ||
| 83 | status | ||
| 84 | ;; | ||
| 85 | *) | ||
| 86 | echo "Usage: $0 {start|stop|force-reload|restart|reload|status|reset}" | ||
| 87 | exit 1 | ||
| 88 | ;; | ||
| 89 | esac | ||
| 90 | |||
| 91 | exit 0 | ||
