Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / qa_scripts / openstack / image_create.sh
1 #/bin/bash -fv
2 #
3 # Set up a vm on packstack.  Use the iso in RHEL_ISO (defaults to home dir)
4 #
5 source ./copy_func.sh
6 source ./fix_conf_file.sh
7 openstack_node=${1}
8 ceph_node=${2}
9
10 RHEL_ISO=${RHEL_ISO:-~/rhel-server-7.2-x86_64-boot.iso}
11 copy_file ${RHEL_ISO} $openstack_node .
12 copy_file execs/run_openstack.sh $openstack_node . 0755
13 filler=`date +%s`
14 ssh $openstack_node ./run_openstack.sh "${openstack_node}X${filler}" rhel-server-7.2-x86_64-boot.iso
15 ssh $ceph_node sudo ceph df