tempest.lib.exceptions.Unauthorized: Unauthorized

Bug #1805319 reported by xiaoxu790
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Expired
Undecided
Unassigned

Bug Description

Env Version:
tempest tag:19.0.0
openstack: queens

Issue
(.venv) [root@openstack refstack-client]# refstack-client test -c ~/refstack-client/.tempest/etc/tempest.conf -v -- --regex tempest.api.identity.v3.test_tokens.TokensV3Test.test_create_token
2018-11-22 18:08:02.185 15009 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2018-11-22 18:08:02,506 refstack_client:516 INFO Starting Tempest test...
2018-11-22 18:08:02.506 15009 INFO refstack_client [-] Starting Tempest test...
{0} setUpClass (tempest.api.identity.v3.test_tokens.TokensV3Test) [0.000000s] ... FAILED

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "tempest/test.py", line 172, in setUpClass
        six.reraise(etype, value, trace)
      File "tempest/test.py", line 157, in setUpClass
        cls.setup_credentials()
      File "tempest/api/identity/base.py", line 30, in setup_credentials
        super(BaseIdentityTest, cls).setup_credentials()
      File "tempest/test.py", line 371, in setup_credentials
        credential_type=credentials_type)
      File "tempest/test.py", line 681, in get_client_manager
        manager.auth_provider.set_auth()
      File "tempest/lib/auth.py", line 159, in set_auth
        self.cache = self._get_auth()
      File "tempest/lib/auth.py", line 314, in _get_auth
        token, auth_data = auth_func(**auth_params)
      File "tempest/lib/services/identity/v3/token_client.py", line 189, in get_token
        body = self.auth(**kwargs)
      File "tempest/lib/services/identity/v3/token_client.py", line 140, in auth
        resp, body = self.post(self.auth_url, body=body)
      File "tempest/lib/common/rest_client.py", line 279, in post
        return self.request('POST', url, extra_headers, headers, body, chunked)
      File "tempest/lib/services/identity/v3/token_client.py", line 169, in request
        raise exceptions.Unauthorized(resp_body['error']['message'])
    tempest.lib.exceptions.Unauthorized: Unauthorized
    Details: The request you have made requires authentication.

xiaoxu790 (xiaoxu790)
Changed in tempest:
assignee: nobody → xiaoxu790 (xiaoxu790)
Changed in tempest:
assignee: xiaoxu790 (xiaoxu790) → xuchao (xuchao)
status: New → In Progress
Revision history for this message
Doug Schveninger (ds6901) wrote :

can you post tempest.conf

Revision history for this message
Martin Kopec (mkopec) wrote :

Due to a long inactivity here we can say the bug is not in Progress , also due to a older report, could you, please, provide if the issue is still valid and per previous comment provide also tempest.conf used.

At the first glance the problem might be that tempest.conf contains a wrong credentials - maybe the user set in tempest.conf doesn't have appropriate roles etc .. please check, that your tempest.conf is correct first.

Until more data is provided, I'll mark this as Incomplete.

Changed in tempest:
assignee: xuchao (xuchao) → nobody
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tempest because there has been no activity for 60 days.]

Changed in tempest:
status: Incomplete → Expired
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.