diff options
author | Jing Lu <lvjing5@huawei.com> | 2016-12-22 02:13:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-22 02:13:09 +0000 |
commit | 675954a9f2b15bc945f274cd6c60a530642b247e (patch) | |
tree | cb4dbb308f866f746a5b787b866cc92d6c75d747 /tests/ci/prepare_storperf_admin-rc.sh | |
parent | b8e82dfe4e5c25682add934f8327fa1516bc3995 (diff) | |
parent | 92f30ababa567dffb9fea221f03f9470b088e067 (diff) |
Merge "Use openstack command instead keystone command in prepare_storperf_admin-rc.sh"
Diffstat (limited to 'tests/ci/prepare_storperf_admin-rc.sh')
-rwxr-xr-x | tests/ci/prepare_storperf_admin-rc.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ci/prepare_storperf_admin-rc.sh b/tests/ci/prepare_storperf_admin-rc.sh index 0401719ff..b3dc2e58e 100755 --- a/tests/ci/prepare_storperf_admin-rc.sh +++ b/tests/ci/prepare_storperf_admin-rc.sh @@ -9,14 +9,15 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +# Prepare storperf_admin-rc for StorPerf. + AUTH_URL=${OS_AUTH_URL} USERNAME=${OS_USERNAME:-admin} PASSWORD=${OS_PASSWORD:-console} TENANT_NAME=${OS_TENANT_NAME:-admin} VOLUME_API_VERSION=${OS_VOLUME_API_VERSION:-2} PROJECT_NAME=${OS_PROJECT_NAME:-$TENANT_NAME} -TENANT_ID=`keystone tenant-get admin|grep 'id'|awk -F '|' '{print $3}'|sed -e 's/^[[:space:]]*//'` - +TENANT_ID=`openstack project show admin|grep '\bid\b' |awk -F '|' '{print $3}'|sed -e 's/^[[:space:]]*//'` rm -f ~/storperf_admin-rc touch ~/storperf_admin-rc |