From 7b2eaedabf0700a50ddcb32ac54570ea200c616e Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Fri, 13 Mar 2015 12:05:49 +0000 Subject: [PATCH] Adding tempest_roles when auth_version is v3 With identity v3 the _member_ role is not added on the projects automatically for the user when it's created. Setting _member_ to tempest_roles so that tempest adds the role. Change-Id: Iaae9286ecc6f019d36261a5c450068a650e24a28 --- lib/tempest | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tempest b/lib/tempest index f856ce05f9..fcb0e59937 100644 --- a/lib/tempest +++ b/lib/tempest @@ -315,6 +315,9 @@ function configure_tempest { # Auth iniset $TEMPEST_CONFIG auth allow_tenant_isolation ${TEMPEST_ALLOW_TENANT_ISOLATION:-True} + if [[ "$TEMPEST_AUTH_VERSION" == "v3" ]]; then + iniset $TEMPEST_CONFIG auth tempest_roles "Member" + fi # Compute iniset $TEMPEST_CONFIG compute ssh_user ${DEFAULT_INSTANCE_USER:-cirros} # DEPRECATED