From 76392b5b44103c1ed061f4e2f1bae8ca6767c6a6 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 4 Apr 2016 09:07:08 -0400 Subject: [PATCH] change internal variables from tenant_id -> project_id As part of the "reduce confusion on tenant_id" we need to change as many references as possible over to project_id. Change-Id: Ia665312f24672b106e12fde93b60f142620c3a45 --- lib/tempest | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/tempest b/lib/tempest index ed26cafe2c..d8790f8345 100644 --- a/lib/tempest +++ b/lib/tempest @@ -180,14 +180,14 @@ function configure_tempest { # See ``lib/keystone`` where these users and tenants are set up local admin_username=${ADMIN_USERNAME:-admin} - local admin_tenant_name=${ADMIN_TENANT_NAME:-admin} + local admin_project_name=${ADMIN_TENANT_NAME:-admin} local admin_domain_name=${ADMIN_DOMAIN_NAME:-Default} local tempest_username=${TEMPEST_USERNAME:-demo} - local tempest_tenant_name=${TEMPEST_TENANT_NAME:-demo} + local tempest_project_name=${TEMPEST_TENANT_NAME:-demo} local alt_username=${ALT_USERNAME:-alt_demo} - local alt_tenant_name=${ALT_TENANT_NAME:-alt_demo} - local admin_tenant_id - admin_tenant_id=$(openstack project list | awk "/ admin / { print \$2 }") + local alt_project_name=${ALT_TENANT_NAME:-alt_demo} + local admin_project_id + admin_project_id=$(openstack project list | awk "/ admin / { print \$2 }") if is_service_enabled nova; then # If ``DEFAULT_INSTANCE_TYPE`` is not declared, use the new behavior @@ -263,8 +263,8 @@ function configure_tempest { if [[ "$TEMPEST_HAS_ADMIN" == "True" ]]; then iniset $TEMPEST_CONFIG auth admin_username $admin_username iniset $TEMPEST_CONFIG auth admin_password "$password" - iniset $TEMPEST_CONFIG auth admin_tenant_name $admin_tenant_name - iniset $TEMPEST_CONFIG auth admin_tenant_id $admin_tenant_id + iniset $TEMPEST_CONFIG auth admin_tenant_name $admin_project_name + iniset $TEMPEST_CONFIG auth admin_tenant_id $admin_project_id iniset $TEMPEST_CONFIG auth admin_domain_name $admin_domain_name fi if [ "$ENABLE_IDENTITY_V2" == "False" ]; then @@ -330,9 +330,9 @@ function configure_tempest { iniset $TEMPEST_CONFIG auth tempest_roles "Member" if [[ $TEMPEST_USE_TEST_ACCOUNTS == "True" ]]; then if [[ $TEMPEST_HAS_ADMIN == "True" ]]; then - tempest-account-generator -c $TEMPEST_CONFIG --os-username $admin_username --os-password "$password" --os-tenant-name $admin_tenant_name -r $TEMPEST_CONCURRENCY --with-admin etc/accounts.yaml + tempest-account-generator -c $TEMPEST_CONFIG --os-username $admin_username --os-password "$password" --os-tenant-name $admin_project_name -r $TEMPEST_CONCURRENCY --with-admin etc/accounts.yaml else - tempest-account-generator -c $TEMPEST_CONFIG --os-username $admin_username --os-password "$password" --os-tenant-name $admin_tenant_name -r $TEMPEST_CONCURRENCY etc/accounts.yaml + tempest-account-generator -c $TEMPEST_CONFIG --os-username $admin_username --os-password "$password" --os-tenant-name $admin_project_name -r $TEMPEST_CONCURRENCY etc/accounts.yaml fi iniset $TEMPEST_CONFIG auth use_dynamic_credentials False iniset $TEMPEST_CONFIG auth test_accounts_file "etc/accounts.yaml"