~gandelman-a/charms/precise/cinder/set_pg_number

« back to all changes in this revision

Viewing changes to scripts/add_to_cluster

  • Committer: Adam Gandelman
  • Date: 2013-06-03 17:34:04 UTC
  • mfrom: (16.2.32 cinder)
  • Revision ID: adamg@canonical.com-20130603173404-wg0uxudqi4f53ho2
Support for Grizzly. Support for HA.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
service corosync start || /bin/true
 
3
sleep 2
 
4
while ! service pacemaker start; do
 
5
    echo "Attempting to start pacemaker"
 
6
    sleep 1;
 
7
done;
 
8
crm node online
 
9
sleep 2
 
10
while crm status | egrep -q 'Stopped$'; do
 
11
    echo "Waiting for nodes to come online"
 
12
    sleep 1
 
13
done