diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /qa/qa_scripts/openstack/image_create.sh | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'qa/qa_scripts/openstack/image_create.sh')
-rwxr-xr-x | qa/qa_scripts/openstack/image_create.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qa/qa_scripts/openstack/image_create.sh b/qa/qa_scripts/openstack/image_create.sh new file mode 100755 index 000000000..ee7f61f3b --- /dev/null +++ b/qa/qa_scripts/openstack/image_create.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# +# Set up a vm on packstack. Use the iso in RHEL_ISO (defaults to home dir) +# +set -fv +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 |