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-admin-rc.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-admin-rc.sh')
-rwxr-xr-x | ci/generate-admin-rc.sh | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/ci/generate-admin-rc.sh b/ci/generate-admin-rc.sh index 6c5b162..efe8b94 100755 --- a/ci/generate-admin-rc.sh +++ b/ci/generate-admin-rc.sh @@ -17,18 +17,29 @@ then mkdir job fi -export OS_AUTH_URL=http://`juju status keystone | grep public | awk '{print $2}'`:5000/v2.0 -export OS_USERNAME=admin -export OS_PASSWORD=openstack -export OS_TENANT_ID=`openstack project list|awk '/admin/ {print $2}'` - -cat << EOF > job/admin.rc -OS_AUTH_URL=$OS_AUTH_URL -OS_USERNAME=$OS_USERNAME -OS_PASSWORD=$OS_PASSWORD -OS_TENANT_ID=$OS_TENANT_ID -OS_TENANT_NAME=admin -OS_PROJECT_NAME=admin -OS_REGION_NAME=RegionOne +export INSTALLER=`./detect_installer.sh` +case $INSTALLER in + joid) + export OS_AUTH_URL=http://`juju status keystone | grep public | awk '{print $2}'`:5000/v2.0 + export OS_USERNAME=admin + export OS_PASSWORD=openstack + cat << EOF > job/openstack.rc +export OS_AUTH_URL=$OS_AUTH_URL +export OS_USERNAME=$OS_USERNAME +export OS_PASSWORD=$OS_PASSWORD +export OS_TENANT_NAME=admin +export OS_PROJECT_NAME=admin EOF + ;; + apex) + INSTALLER_IP=`sudo virsh domifaddr undercloud | grep ipv4 | awk '{print $4}' | cut -d/ -f1` + ;; +esac + +if [ ! -z $INSTALLER_IP ] +then + ../../releng/utils/fetch_os_creds.sh -i $INSTALLER -a $INSTALLER_IP -d job/openstack.rc + echo export OS_PROJECT_NAME=admin >> job/openstack.rc +fi +sed "s/export //" job/openstack.rc > job/admin.rc
\ No newline at end of file |