Ask Your Question

HTTPError: (403, 'Forbidden') when running tempest tests [closed]

asked 2014-09-18 05:18:38 -0500

idesh gravatar image

updated 2014-09-18 18:50:43 -0500

smaffulli gravatar image

Hi, I'm new to tempest. I have configured packstack environment and trying to run tempest test against it.

Steps: configured the tempest.conf (see the attachment) for identity v2.0 and ran >>

 nosetests -v


(.venv)[root@brasilia tempest(keystone_admin)]# nosetests -v

ERROR: test suite for <class 'tempest.api.identity.admin.test_users.UsersTestJSON'>
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/", line 154, in run
  File "/usr/lib/python2.6/site-packages/nose/", line 202, in setUp
  File "/usr/lib/python2.6/site-packages/nose/", line 225, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.6/site-packages/nose/", line 453, in try_run
    return func()
  File "/var/lib/tempest/tempest/api/identity/admin/", line 28, in setUpClass
    super(UsersTestJSON, cls).setUpClass()
  File "/var/lib/tempest/tempest/api/identity/", line 78, in setUpClass
    super(BaseIdentityV2AdminTest, cls).setUpClass()
  File "/var/lib/tempest/tempest/api/identity/", line 34, in setUpClass
    cls.os_adm = clients.AdminManager(interface=cls._interface)
  File "/var/lib/tempest/tempest/", line 465, in __init__
  File "/var/lib/tempest/tempest/", line 477, in get_default_credentials
    return get_credentials(fill_in=fill_in, credential_type=credential_type)
  File "/var/lib/tempest/tempest/", line 513, in get_credentials
    creds = auth_provider.fill_credentials()
  File "/var/lib/tempest/tempest/", line 97, in fill_credentials
    auth_data = self.get_auth()
  File "/var/lib/tempest/tempest/", line 121, in get_auth
  File "/var/lib/tempest/tempest/", line 129, in set_auth
    self.cache = self._get_auth()
  File "/var/lib/tempest/tempest/", line 252, in _get_auth
    token, auth_data = auth_func(**auth_params)
  File "/var/lib/tempest/tempest/services/identity/json/", line 367, in get_token
    resp, body = self.auth(user, password, tenant)
  File "/var/lib/tempest/tempest/services/identity/json/", line 311, in auth
    resp, body =, body=body)
  File "/var/lib/tempest/tempest/common/", line 219, in post
    return self.request('POST', url, extra_headers, headers, body)
  File "/var/lib/tempest/tempest/services/identity/json/", line 349, in request
    headers=headers, body=body)
  File "/var/lib/tempest/tempest/common/", line 25, in request
    return super(ClosingHttp, self).request(*args, **new_kwargs)
  File "/usr/lib/python2.6/site-packages/httplib2/", line 1605, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.6/site-packages/httplib2/", line 1353, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.6/site-packages/httplib2/", line 1289, in _conn_request
  File "/usr/lib/python2.6/site-packages/httplib2/", line 896, in connect
    self.sock.connect((, self.port) + sa[2:])
  File "/usr/lib/python2.6/site-packages/httplib2/", line 424, in connect
    self.__negotiatehttp(destpair[0], destpair[1])
  File "/usr/lib ...
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by smaffulli
close date 2014-09-18 18:50:56.240584

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-18 07:46:05 -0500

idesh gravatar image

issue resolved after giving both uri & uri_v3 and demo user credentials for nova API requests

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-18 05:18:38 -0500

Seen: 520 times

Last updated: Sep 18 '14