Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distro tempest failure: octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest #53

Open
coreycb opened this issue Oct 13, 2021 · 0 comments

Comments

@coreycb
Copy link

coreycb commented Oct 13, 2021

In this case it is reproduced with 'tox -e func-target focal-ussuri' but can likely be reproduced on (m)any releases.

Info from Chris M. He says this can be resolved by going back from master to the released version (as a workaround). The problem is the admin user we get doesn't have system scope. It is probably the case that we can resolve it by updating how we get our overcloud admin credentials

setUpClass (octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest)                
----------------------------------------------------------------------------------------------------                                                                                                                                                                                                                                                                                                                                                                                                                                                            
Captured traceback:                                                                                                                          
~~~~~~~~~~~~~~~~~~~                                                                                                                          
    Traceback (most recent call last):                                                                                                       
                                                                                                                                             
      File "/tmp/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/tempest/test.py", line 181, in setUpClass          
    raise value.with_traceback(trace)                                                                                                        
                                                                                                                                             
      File "/tmp/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/tempest/test.py", line 166, in setUpClass
    cls.setup_credentials()                                                                                                                  
                                                                                                                                             
      File "/tmp/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/octavia_tempest_plugin/tests/test_base.py", line 149, in setup_credentials                                                                                                                                                                                                          
    roles = cls.os_admin.role_assignments_client.list_role_assignments(                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
      File "/tmp/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/tempest/lib/services/identity/v3/role_assignments_client.py", line 46, in list_role_assignments                                                                                                                                                                                     
    resp, body = self.get(url)                                                                                                               
                                                                                                                                                                                                                                                                                                                                                                                 File "/tmp/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/tempest/lib/common/rest_client.py", line 314, in get                                          
    return self.request('GET', url, extra_headers, headers)                                                                                  
                                                                                                                                             
      File "/tmp/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/tempest/lib/common/rest_client.py", line 703, in request                                                                                                                                                                                                                            
    self._error_checker(resp, resp_body)                                                                                                     
                                                                                                                                             
      File "/tmp/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/tempest/lib/common/rest_client.py", line 804, in _error_checker                                                                                                                                                                                                                         raise exceptions.Forbidden(resp_body, resp=resp)                                                                                                                                 
                                                                                                                                             
    tempest.lib.exceptions.Forbidden: Forbidden                                                                                              
Details: {'code': 403, 'message': 'You are not authorized to perform the requested action: identity:list_role_assignments.', 'title': 'Forbidden'}
@coreycb coreycb changed the title Distro tempest failure - octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest Distro tempest failure: octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops.TrafficOperationsScenarioTest Oct 13, 2021
coreycb pushed a commit to coreycb/charmed-openstack-tester that referenced this issue Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant