settingsLogin | Registersettings

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

0 votes

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:

allowtenantisolation = 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
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
tryrun(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/testabsolutelimits.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.getclientmanager()
File "/opt/stack/tempest/tempest/test.py", line 288, in
getclientmanager
creds = cls.isolatedcreds.getprimarycreds()
File "/opt/stack/tempest/tempest/common/isolated
creds.py", line
367, in getprimarycreds
user, tenant = self.createcreds()
File "/opt/stack/tempest/tempest/common/isolatedcreds.py", line
166, in _create
creds
description=tenantdesc)
File "/opt/stack/tempest/tempest/common/isolated
creds.py", line 81,
in createtenant
name=name, description=description)
File
"/opt/stack/tempest/tempest/services/identity/json/identityclient.py", line
63, in create
tenant
resp, body = self.post('tenants', postbody, 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/restclient.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=reqheaders, body=reqbody)
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
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
tryrun(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/testabsolutelimits.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.getclientmanager()
File "/opt/stack/tempest/tempest/test.py", line 288, in
getclientmanager
creds = cls.isolatedcreds.getprimarycreds()
File "/opt/stack/tempest/tempest/common/isolated
creds.py", line
367, in getprimarycreds
user, tenant = self.createcreds()
File "/opt/stack/tempest/tempest/common/isolatedcreds.py", line
166, in _create
creds
description=tenantdesc)
File "/opt/stack/tempest/tempest/common/isolated
creds.py", line 81,
in createtenant
name=name, description=description)
File
"/opt/stack/tempest/tempest/services/identity/json/identityclient.py", line
63, in create
tenant
resp, body = self.post('tenants', postbody, 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/restclient.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=reqheaders, body=reqbody)
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

asked Feb 20, 2014 in openstack-dev by David_Kranz (4,560 points)   1 3 3
retagged Jan 28, 2015 by admin
...