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

David Kranz dkranz at redhat.com
Thu Feb 20 17:12:42 UTC 2014


On 02/20/2014 05:58 AM, om prakash pandey wrote:
> 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.
Please use openstack-dev prefixed with [qa] in the subject. The 
openstack-qa list is not being used anymore.

I think the problem you are having is that,
by default, tempest creates a new tenant and user for each test class. 
Doing so requires admin credentials which are specified in tempest.conf. 
You can
run tempest without this feature by setting these values in tempest.conf:

allow_tenant_isolation = false

If you do this you will not be able to run tempest in parallel and a 
number of tests that require admin to run at all will fail.

Also, if you are using master, the use of nose is not supported any 
more. You will need to use testr.

  -David

>
> 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
>
>
>
> _______________________________________________
> openstack-qa mailing list
> openstack-qa at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-qa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140220/3bffcdfc/attachment.html>


More information about the OpenStack-dev mailing list