[openstack-qa] Not Able to Run Tempest API Tests

om prakash pandey pandeyop at gmail.com
Thu Feb 20 10:58:50 UTC 2014


I am not able to run Tempest API tests. The typical ERROR I am getting is
"Connection Timed Out".

When checking into the logs I found out that tempest is trying to access
the admin URL which is a private IP for our deployment. Now, Tempest is
designed to access only the Public API endpoints, so is this something to
do with my Tempest Configuration OR A problem with the Deployment itself.

ERROR: test suite for <class
'tempest.api.compute.limits.test_absolute_limits.AbsoluteLimitsTestJSON'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 208, in run
    self.setUp()
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 291, in setUp
    self.setupContext(ancestor)
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 314, in setupContext
    try_run(context, names)
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/util.py",
line 469, in try_run
    return func()
  File
"/opt/stack/tempest/tempest/api/compute/limits/test_absolute_limits.py",
line 25, in setUpClass
    super(AbsoluteLimitsTestJSON, cls).setUpClass()
  File "/opt/stack/tempest/tempest/api/compute/base.py", line 183, in
setUpClass
    super(BaseV2ComputeTest, cls).setUpClass()
  File "/opt/stack/tempest/tempest/api/compute/base.py", line 39, in
setUpClass
    os = cls.get_client_manager()
  File "/opt/stack/tempest/tempest/test.py", line 288, in get_client_manager
    creds = cls.isolated_creds.get_primary_creds()
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 367, in
get_primary_creds
    user, tenant = self._create_creds()
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 166, in
_create_creds
    description=tenant_desc)
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 81, in
_create_tenant
    name=name, description=description)
  File
"/opt/stack/tempest/tempest/services/identity/json/identity_client.py",
line 63, in create_tenant
    resp, body = self.post('tenants', post_body, self.headers)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 154, in post
    return self.request('POST', url, headers, body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 276, in
request
    headers=headers, body=body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 260, in
_request
    req_url, method, headers=req_headers, body=req_body)
  File "/opt/stack/tempest/tempest/common/http.py", line 25, in request
    return super(ClosingHttp, self).request(*args, **new_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
1571, in request
    (response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
1318, in _request
    (response, content) = self._conn_request(conn, request_uri, method,
body, headers)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
1291, in _conn_request
    conn.connect()
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
913, in connect
    raise socket.error, msg
error: [Errno 110] Connection timed out
-------------------- >> begin captured stdout << ---------------------
connect: (10.135.120.120, 35357) ************
connect fail: (10.135.120.120, 35357)

--------------------- >> end captured stdout << ----------------------

======================================================================
ERROR: test suite for <class
'tempest.api.compute.limits.test_absolute_limits.AbsoluteLimitsTestXML'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 208, in run
    self.setUp()
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 291, in setUp
    self.setupContext(ancestor)
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
line 314, in setupContext
    try_run(context, names)
  File
"/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/util.py",
line 469, in try_run
    return func()
  File
"/opt/stack/tempest/tempest/api/compute/limits/test_absolute_limits.py",
line 25, in setUpClass
    super(AbsoluteLimitsTestJSON, cls).setUpClass()
  File "/opt/stack/tempest/tempest/api/compute/base.py", line 183, in
setUpClass
    super(BaseV2ComputeTest, cls).setUpClass()
  File "/opt/stack/tempest/tempest/api/compute/base.py", line 39, in
setUpClass
    os = cls.get_client_manager()
  File "/opt/stack/tempest/tempest/test.py", line 288, in get_client_manager
    creds = cls.isolated_creds.get_primary_creds()
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 367, in
get_primary_creds
    user, tenant = self._create_creds()
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 166, in
_create_creds
    description=tenant_desc)
  File "/opt/stack/tempest/tempest/common/isolated_creds.py", line 81, in
_create_tenant
    name=name, description=description)
  File
"/opt/stack/tempest/tempest/services/identity/json/identity_client.py",
line 63, in create_tenant
    resp, body = self.post('tenants', post_body, self.headers)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 154, in post
    return self.request('POST', url, headers, body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 276, in
request
    headers=headers, body=body)
  File "/opt/stack/tempest/tempest/common/rest_client.py", line 260, in
_request
    req_url, method, headers=req_headers, body=req_body)
  File "/opt/stack/tempest/tempest/common/http.py", line 25, in request
    return super(ClosingHttp, self).request(*args, **new_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
1571, in request
    (response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
1318, in _request
    (response, content) = self._conn_request(conn, request_uri, method,
body, headers)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
1291, in _conn_request
    conn.connect()
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line
913, in connect
    raise socket.error, msg
error: [Errno 110] Connection timed out

----------------------------------------------------------------------
Ran 0 tests in 509.420s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-qa/attachments/20140220/a004d027/attachment.html>


More information about the openstack-qa mailing list