diff options
author | mbeierl <mark.beierl@dell.com> | 2017-01-17 14:22:18 -0500 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-01-18 13:58:14 -0500 |
commit | 6ce8e3db303e3a32c2a57e0638c1de070a49ef06 (patch) | |
tree | c0775706ee17ff6616cfbc5649644125039c0fd5 /ci/generate-environment.sh | |
parent | c3eff480168e4dca242654374c31857dfb577141 (diff) |
StorPerf Daily Job
Helper script that determines what installer was used.
Script to generate RC file for container.
Script to determine number of Cinder nodes.
Daily job to pull new container, create stack based on
number of Cinder nodes, issue a warm up, and then run
a series of performance tests against the stack. Deletes
stack once complete.
JIRA: STORPERF-87
Signed-off-by: mbeierl <mark.beierl@dell.com>
Change-Id: I551f21ffc85f11b0c0724205e952551022a94f5b
Diffstat (limited to 'ci/generate-environment.sh')
-rwxr-xr-x | ci/generate-environment.sh | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/ci/generate-environment.sh b/ci/generate-environment.sh index 6b44313..c65dc17 100755 --- a/ci/generate-environment.sh +++ b/ci/generate-environment.sh @@ -13,13 +13,12 @@ if [ ! -d job ] then mkdir job fi +ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -# TODO: This assumes JOID. Need to make this programmatic - -INSTALLER=JOID +export INSTALLER=`./detect_installer.sh` case $INSTALLER in - JOID) + joid) # Determine Cinder backend if [ ! -z "$(juju status | grep ceph)" ] then @@ -31,18 +30,28 @@ case $INSTALLER in CINDER_BACKEND=scaleio JUJU_CHARM=scaleio-sds fi - # Determine how many storage blades we have - CINDER_NODES=`juju status | grep "$JUJU_CHARM/" | wc -l` - # Later, collect info about each node: - # juju status | grep hardware: | grep tags | grep -v virtual + # Determine how many storage blades we have + CINDER_NODES=`juju status | grep "$JUJU_CHARM/" | wc -l` + # Later, collect info about each node: + # juju status | grep hardware: | grep tags | grep -v virtual + NETWORK=ext-net + ;; + apex) + INSTALLER_IP=`sudo virsh domifaddr undercloud | grep ipv4 | awk '{print $4}' | cut -d/ -f1` + CINDER_BACKEND=ceph + sudo scp $ssh_options root@$INSTALLER_IP:/home/stack/instackenv.json job/ + CINDER_NODES=`grep capabilities job/instackenv.json | wc -l` + NETWORK=external ;; *) CINDER_BACKEND=ceph CINDER_NODES=4 + NETWORK=external esac cat << EOF > job/environment.rc export CINDER_BACKEND=$CINDER_BACKEND export CINDER_NODES=$CINDER_NODES export INSTALLER=$INSTALLER +export NETWORK=$NETWORK EOF
\ No newline at end of file |