Sync scripts/.
This commit is contained in:
parent
859e4aaf50
commit
30fa455444
|
@ -1,2 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
service corosync start || /bin/true
|
||||||
|
sleep 2
|
||||||
|
while ! service pacemaker start; do
|
||||||
|
echo "Attempting to start pacemaker"
|
||||||
|
sleep 1;
|
||||||
|
done;
|
||||||
crm node online
|
crm node online
|
||||||
|
sleep 2
|
||||||
|
while crm status | egrep -q 'Stopped$'; do
|
||||||
|
echo "Waiting for nodes to come online"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# Validate that service ports are active
|
|
||||||
HEALTH_DIR=`dirname $0`
|
|
||||||
SCRIPTS_DIR=`dirname $HEALTH_DIR`
|
|
||||||
. $SCRIPTS_DIR/scriptrc
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Grab any OPENSTACK_PORT* environment variables
|
|
||||||
openstack_ports=`env| awk -F '=' '(/OPENSTACK_PORT/){print $2}'`
|
|
||||||
for port in $openstack_ports
|
|
||||||
do
|
|
||||||
netstat -ln | grep -q ":$port "
|
|
||||||
done
|
|
|
@ -1,2 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
crm node standby
|
crm node standby
|
||||||
|
service pacemaker stop
|
||||||
|
service corosync stop
|
||||||
|
|
Loading…
Reference in New Issue