X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fqa%2Fqa_scripts%2Fopenstack%2Fimage_create.sh;fp=src%2Fceph%2Fqa%2Fqa_scripts%2Fopenstack%2Fimage_create.sh;h=4252dd8837aefb794ab8cbd8012da928d72bb03a;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/qa/qa_scripts/openstack/image_create.sh b/src/ceph/qa/qa_scripts/openstack/image_create.sh new file mode 100755 index 0000000..4252dd8 --- /dev/null +++ b/src/ceph/qa/qa_scripts/openstack/image_create.sh @@ -0,0 +1,15 @@ +#/bin/bash -fv +# +# Set up a vm on packstack. Use the iso in RHEL_ISO (defaults to home dir) +# +source ./copy_func.sh +source ./fix_conf_file.sh +openstack_node=${1} +ceph_node=${2} + +RHEL_ISO=${RHEL_ISO:-~/rhel-server-7.2-x86_64-boot.iso} +copy_file ${RHEL_ISO} $openstack_node . +copy_file execs/run_openstack.sh $openstack_node . 0755 +filler=`date +%s` +ssh $openstack_node ./run_openstack.sh "${openstack_node}X${filler}" rhel-server-7.2-x86_64-boot.iso +ssh $ceph_node sudo ceph df