blob: 0cbd3a48b26ab4217c3bbc538adafce6fa663ee8 [file] [log] [blame]
Andy Bavierea5b44c2016-04-08 16:12:30 -04001#!/bin/bash
2
3cd ~
4git clone https://github.com/open-cloud/openstack-cluster-setup.git
5cd ~/openstack-cluster-setup
6./bootstrap.sh
7ansible-playbook -i cord-test-hosts cord-setup.yml
8
9ssh ubuntu@onos-cord "cd cord; sudo docker-compose up -d"
10ssh ubuntu@xos "cd xos/xos/configurations/cord-pod; sudo docker-compose pull"
11
12# Need to wait for OpenStack services to come up before running any XOS "make" commands
13echo "Waiting for the OpenStack services to fully come up."
14echo "This can take 30 minutes or more, be patient!"
15i=0
16until juju status --format=summary|grep "started: 23" > /dev/null
17do
18 sleep 60
19 (( i += 1 ))
20 echo "Waited $i minutes"
21done
22
23echo "All OpenStack services are up."