~james-page/charms/precise/cinder/pre-test

« back to all changes in this revision

Viewing changes to scripts/add_to_cluster

  • Committer: Adam Gandelman
  • Date: 2013-10-17 21:48:08 UTC
  • Revision ID: adamg@canonical.com-20131017214808-k52pya40bowxzg4i
Merging python-redux and havana work.

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