Ask Your Question
0

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 tempest.api.identity.admin.test_users.py

Result:

(.venv)[root@brasilia tempest(keystone_admin)]# nosetests -v tempest.api.identity.admin.test_users.py
ERROR
ERROR

======================================================================
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/suite.py", line 154, in run
    self.setUp()
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 202, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.6/site-packages/nose/suite.py", line 225, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.6/site-packages/nose/util.py", line 453, in try_run
    return func()
  File "/var/lib/tempest/tempest/api/identity/admin/test_users.py", line 28, in setUpClass
    super(UsersTestJSON, cls).setUpClass()
  File "/var/lib/tempest/tempest/api/identity/base.py", line 78, in setUpClass
    super(BaseIdentityV2AdminTest, cls).setUpClass()
  File "/var/lib/tempest/tempest/api/identity/base.py", line 34, in setUpClass
    cls.os_adm = clients.AdminManager(interface=cls._interface)
  File "/var/lib/tempest/tempest/clients.py", line 465, in __init__
    credentials=auth.get_default_credentials('identity_admin'),
  File "/var/lib/tempest/tempest/auth.py", line 477, in get_default_credentials
    return get_credentials(fill_in=fill_in, credential_type=credential_type)
  File "/var/lib/tempest/tempest/auth.py", line 513, in get_credentials
    creds = auth_provider.fill_credentials()
  File "/var/lib/tempest/tempest/auth.py", line 97, in fill_credentials
    auth_data = self.get_auth()
  File "/var/lib/tempest/tempest/auth.py", line 121, in get_auth
    self.set_auth()
  File "/var/lib/tempest/tempest/auth.py", line 129, in set_auth
    self.cache = self._get_auth()
  File "/var/lib/tempest/tempest/auth.py", line 252, in _get_auth
    token, auth_data = auth_func(**auth_params)
  File "/var/lib/tempest/tempest/services/identity/json/identity_client.py", line 367, in get_token
    resp, body = self.auth(user, password, tenant)
  File "/var/lib/tempest/tempest/services/identity/json/identity_client.py", line 311, in auth
    resp, body = self.post(self.auth_url, body=body)
  File "/var/lib/tempest/tempest/common/rest_client.py", line 219, in post
    return self.request('POST', url, extra_headers, headers, body)
  File "/var/lib/tempest/tempest/services/identity/json/identity_client.py", line 349, in request
    headers=headers, body=body)
  File "/var/lib/tempest/tempest/common/http.py", line 25, in request
    return super(ClosingHttp, self).request(*args, **new_kwargs)
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", 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/__init__.py", line 1353, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", line 1289, in _conn_request
    conn.connect()
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", line 896, in connect
    self.sock.connect((self.host, self.port) + sa[2:])
  File "/usr/lib/python2.6/site-packages/httplib2/socks.py", line 424, in connect
    self.__negotiatehttp(destpair[0], destpair[1])
  File "/usr/lib ...
(more)
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
1

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

Stats

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

Seen: 426 times

Last updated: Sep 18 '14