From 57b092dbceb95ed03f8d33f64a5cc60eabd57e50 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Mon, 8 Feb 2021 11:37:38 -0600 Subject: [PATCH] Stop configure 'member' role in tempest_roles Config option auth.tempest_roles is used to set the extra roles to all dynamic cred tests users. - https://opendev.org/openstack/tempest/src/commit/9b6f441fdc2a970410ea631dc1318896349e010f/tempest/common/credentials_factory.py#L82 Devstack set the 'member' role in CONF.auth.tempest_roles - https://opendev.org/openstack/devstack/src/commit/556f84aea90c572873fc9834292635b41e590224/lib/tempest#L628 This cause issue if any tests testing for speciifc rols and want to exclude the 'member' role, basically this bug - https://bugs.launchpad.net/devstack/+bug/1915740 Also with 'member' role assigned by default, Tempest will not be able to test the secure RBAC new default 'reader' role. Let's remove this role assignment now and let test congfigure what they want. Closes-Bug: #1915740 Change-Id: I0b6ab9fb943c7b0925a0a0d2490a8bcdfa76cedc --- lib/tempest | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tempest b/lib/tempest index 8ee986d555..04540e5ea8 100644 --- a/lib/tempest +++ b/lib/tempest @@ -625,7 +625,6 @@ function configure_tempest { rm -f $tmp_u_c_m # Auth: - iniset $TEMPEST_CONFIG auth tempest_roles "member" if [[ $TEMPEST_USE_TEST_ACCOUNTS == "True" ]]; then if [[ $TEMPEST_HAS_ADMIN == "True" ]]; then tox -evenv-tempest -- tempest account-generator -c $TEMPEST_CONFIG --os-username $admin_username --os-password "$password" --os-project-name $admin_project_name -r $TEMPEST_CONCURRENCY --with-admin etc/accounts.yaml