Test attempts to access ResellerAdmin role even if reseller support is disabled

Bug #1634233 reported by Nuno Santos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Won't Fix
Undecided
Nuno Santos

Bug Description

The tempest.api.object_storage.test_account_quotas.AccountQuotasTest test attempts to access the ResellerAdmin role even if reseller support is disabled.

Also, test_admin_modify_quota should be skipped is such support is not enabled.

Current output:

setUpClass (tempest.api.object_storage.test_account_quotas.AccountQuotasTest)
-----------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/test.py", line 273, in setUpClass'
    b' six.reraise(etype, value, trace)'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/.tox/tempest/lib/python3.5/site-packages/six.py", line 686, in reraise'
    b' raise value'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/test.py", line 261, in setUpClass'
    b' cls.setup_credentials()'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/api/object_storage/test_account_quotas.py", line 30, in setup_credentials'
    b' super(AccountQuotasTest, cls).setup_credentials()'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/api/object_storage/base.py", line 40, in setup_credentials'
    b' super(BaseObjectTest, cls).setup_credentials()'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/test.py", line 375, in setup_credentials'
    b' force_new=True)'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/test.py", line 531, in get_client_manager'
    b' creds = cred_provider.get_creds_by_roles(**params)'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/common/dynamic_creds.py", line 325, in get_creds_by_roles'
    b' return self.get_credentials(roles)'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/common/dynamic_creds.py", line 288, in get_credentials'
    b' credentials = self._create_creds(roles=credential_type)'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/common/dynamic_creds.py", line 156, in _create_creds'
    b' self.creds_client.assign_user_role(user, project, role)'
    b' File "/var/lib/tempest/tempest-12.2.0/tempest/tempest/common/cred_client.py", line 75, in assign_user_role'
    b' raise lib_exc.NotFound(msg)'
    b'tempest.lib.exceptions.NotFound: Object not found'
    b'Details: No "ResellerAdmin" role found'
    b''

Nuno Santos (nunosantos)
summary: - Test attempts to create ResellerAdmin tenant even if reseller support
- isdisbaled
+ Test attempts to access ResellerAdmin role even if reseller support is
+ disabled
Changed in tempest:
assignee: nobody → Nuno Santos (nunosantos)
status: New → In Progress
Revision history for this message
Ken'ichi Ohmichi (oomichi) wrote :
Revision history for this message
Ken'ichi Ohmichi (oomichi) wrote :

The comment from the patch:

"Reseller feature has been implemented on Keystone side since Mitaka, and we cannot disable this feature after Mitaka. Now Tempest supports Mitaka and later, so I don't think this patch is necessary for the latest Tempest."

Changed in tempest:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by "Ghanshyam <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/387648

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.