Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / qa_scripts / openstack / openstack.sh
1 #/bin/bash -fv
2 #
3 # Install Openstack.
4 #     Usage: openstack <openstack-site> <ceph-monitor>
5 #
6 # This script installs Openstack on one node, and connects it to a ceph
7 # cluster on another set of nodes.  It is intended to run from a third
8 # node.
9 #
10 # Assumes a single node Openstack cluster and a single monitor ceph
11 # cluster.
12 #
13 # The execs directory contains scripts to be run on remote sites.
14 # The files directory contains files to be copied to remote sites.
15 #
16
17 source ./copy_func.sh
18 source ./fix_conf_file.sh
19 openstack_node=${1}
20 ceph_node=${2}
21 ./packstack.sh $openstack_node $ceph_node
22 echo 'done running packstack'
23 sleep 60
24 ./connectceph.sh $openstack_node $ceph_node
25 echo 'done connecting'
26 sleep 60
27 ./image_create.sh $openstack_node $ceph_node