Facing "IdentityError: Got identity error" while running config_tempest.py file

Solution Verified - Updated -

Issue

  • Able to run openstack commands with the keystone credentials, but facing issue when running the following command:
python config_tempest.py --create --debug identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD
[...]
2017-01-24 20:45:35.846 9082 INFO tempest.lib.common.rest_client [-] Request (main): 504 POST http://192.168.122.85:5000/v2.0/tokens
2017-01-24 20:45:35.853 9082 CRITICAL tempest [-] IdentityError: Got identity error
Details: Unexpected status code 504
2017-01-24 20:45:35.853 9082 ERROR tempest Traceback (most recent call last):
2017-01-24 20:45:35.853 9082 ERROR tempest   File "config_tempest.py", line 830, in <module>
2017-01-24 20:45:35.853 9082 ERROR tempest     main()
2017-01-24 20:45:35.853 9082 ERROR tempest   File "config_tempest.py", line 154, in main
2017-01-24 20:45:35.853 9082 ERROR tempest     clients = ClientManager(conf, not args.non_admin)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "config_tempest.py", line 411, in __init__
2017-01-24 20:45:35.853 9082 ERROR tempest     tenant_name)['id']
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/common/identity.py", line 20, in get_tenant_by_name
2017-01-24 20:45:35.853 9082 ERROR tempest     tenants = client.list_tenants()['tenants']
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/services/identity/v2/json/tenants_client.py", line 56, in list_tenants
2017-01-24 20:45:35.853 9082 ERROR tempest     resp, body = self.get('tenants')
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 275, in get
2017-01-24 20:45:35.853 9082 ERROR tempest     return self.request('GET', url, extra_headers, headers)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 630, in request
2017-01-24 20:45:35.853 9082 ERROR tempest     headers=headers, body=body)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 523, in _request
2017-01-24 20:45:35.853 9082 ERROR tempest     method, url, headers, body, self.filters)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/auth.py", line 140, in auth_request
2017-01-24 20:45:35.853 9082 ERROR tempest     filters, method, url, headers, body)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/auth.py", line 211, in _decorate_request
2017-01-24 20:45:35.853 9082 ERROR tempest     auth_data = self.auth_data
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/auth.py", line 93, in auth_data
2017-01-24 20:45:35.853 9082 ERROR tempest     return self.get_auth()
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/auth.py", line 102, in get_auth
2017-01-24 20:45:35.853 9082 ERROR tempest     self.set_auth()
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/auth.py", line 111, in set_auth
2017-01-24 20:45:35.853 9082 ERROR tempest     self.cache = self._get_auth()
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/auth.py", line 243, in _get_auth
2017-01-24 20:45:35.853 9082 ERROR tempest     token, auth_data = auth_func(**auth_params)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/services/identity/v2/token_client.py", line 104, in get_token
2017-01-24 20:45:35.853 9082 ERROR tempest     body = self.auth(user, password, tenant)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/services/identity/v2/token_client.py", line 54, in auth
2017-01-24 20:45:35.853 9082 ERROR tempest     resp, body = self.post(self.auth_url, body=body)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/common/rest_client.py", line 260, in post
2017-01-24 20:45:35.853 9082 ERROR tempest     return self.request('POST', url, extra_headers, headers, body)
2017-01-24 20:45:35.853 9082 ERROR tempest   File "/usr/lib/python2.7/site-packages/tempest/lib/services/identity/v2/token_client.py", line 98, in request
2017-01-24 20:45:35.853 9082 ERROR tempest     'Unexpected status code {0}'.format(resp.status))
2017-01-24 20:45:35.853 9082 ERROR tempest IdentityError: Got identity error  <===
2017-01-24 20:45:35.853 9082 ERROR tempest Details: Unexpected status code 504
2017-01-24 20:45:35.853 9082 ERROR tempest 
[root@controller tools(keystone_admin)]#

Environment

  • Red Hat Open Stack
  • tempest

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content