<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 02/20/2014 05:58 AM, om prakash
      pandey wrote:<br>
    </div>
    <blockquote
cite="mid:CAK9ocLDcYSFQGmF6jrdd+WVVPa5sniaDQt+2XAqyKCAQYP_HtQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am not able to run Tempest API tests. The typical
        ERROR I am getting is "Connection Timed Out". 
        <div><br>
        </div>
        <div>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.<br>
        </div>
      </div>
    </blockquote>
    Please use openstack-dev prefixed with [qa] in the subject. The
    openstack-qa list is not being used anymore.<br>
    <br>
    I think the problem you are having is that,<br>
    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<br>
    run tempest without this feature by setting these values in
    tempest.conf:<br>
    <br>
    allow_tenant_isolation = false<br>
    <br>
    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.<br>
    <br>
    Also, if you are using master, the use of nose is not supported any
    more. You will need to use testr.<br>
    <br>
     -David<br>
    <br>
    <blockquote
cite="mid:CAK9ocLDcYSFQGmF6jrdd+WVVPa5sniaDQt+2XAqyKCAQYP_HtQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div>
            <div>ERROR: test suite for <class
'tempest.api.compute.limits.test_absolute_limits.AbsoluteLimitsTestJSON'></div>
            <div>----------------------------------------------------------------------</div>
            <div>Traceback (most recent call last):</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
              line 208, in run</div>
            <div>    self.setUp()</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
              line 291, in setUp</div>
            <div>    self.setupContext(ancestor)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
              line 314, in setupContext</div>
            <div>    try_run(context, names)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/util.py",
              line 469, in try_run</div>
            <div>    return func()</div>
            <div>  File
              "/opt/stack/tempest/tempest/api/compute/limits/test_absolute_limits.py",
              line 25, in setUpClass</div>
            <div>    super(AbsoluteLimitsTestJSON, cls).setUpClass()</div>
            <div>  File
              "/opt/stack/tempest/tempest/api/compute/base.py", line
              183, in setUpClass</div>
            <div>    super(BaseV2ComputeTest, cls).setUpClass()</div>
            <div>  File
              "/opt/stack/tempest/tempest/api/compute/base.py", line 39,
              in setUpClass</div>
            <div>    os = cls.get_client_manager()</div>
            <div>  File "/opt/stack/tempest/tempest/test.py", line 288,
              in get_client_manager</div>
            <div>    creds = cls.isolated_creds.get_primary_creds()</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/isolated_creds.py",
              line 367, in get_primary_creds</div>
            <div>    user, tenant = self._create_creds()</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/isolated_creds.py",
              line 166, in _create_creds</div>
            <div>    description=tenant_desc)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/isolated_creds.py",
              line 81, in _create_tenant</div>
            <div>    name=name, description=description)</div>
            <div>  File
              "/opt/stack/tempest/tempest/services/identity/json/identity_client.py",
              line 63, in create_tenant</div>
            <div>    resp, body = self.post('tenants', post_body,
              self.headers)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/rest_client.py", line
              154, in post</div>
            <div>    return self.request('POST', url, headers, body)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/rest_client.py", line
              276, in request</div>
            <div>    headers=headers, body=body)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/rest_client.py", line
              260, in _request</div>
            <div>    req_url, method, headers=req_headers,
              body=req_body)</div>
            <div>  File "/opt/stack/tempest/tempest/common/http.py",
              line 25, in request</div>
            <div>    return super(ClosingHttp, self).request(*args,
              **new_kwargs)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 1571, in request</div>
            <div>    (response, content) = self._request(conn,
              authority, uri, request_uri, method, body, headers,
              redirections, cachekey)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 1318, in _request</div>
            <div>    (response, content) = self._conn_request(conn,
              request_uri, method, body, headers)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 1291, in _conn_request</div>
            <div>    conn.connect()</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 913, in connect</div>
            <div>    raise socket.error, msg</div>
            <div>error: [Errno 110] Connection timed out</div>
            <div>-------------------- >> begin captured stdout
              << ---------------------</div>
            <div>connect: (10.135.120.120, 35357) ************</div>
            <div>connect fail: (10.135.120.120, 35357)</div>
            <div><br>
            </div>
            <div>--------------------- >> end captured stdout
              << ----------------------</div>
            <div><br>
            </div>
            <div>======================================================================</div>
            <div>ERROR: test suite for <class
'tempest.api.compute.limits.test_absolute_limits.AbsoluteLimitsTestXML'></div>
            <div>----------------------------------------------------------------------</div>
            <div>Traceback (most recent call last):</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
              line 208, in run</div>
            <div>    self.setUp()</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
              line 291, in setUp</div>
            <div>    self.setupContext(ancestor)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/suite.py",
              line 314, in setupContext</div>
            <div>    try_run(context, names)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/nose-1.3.0-py2.7.egg/nose/util.py",
              line 469, in try_run</div>
            <div>    return func()</div>
            <div>  File
              "/opt/stack/tempest/tempest/api/compute/limits/test_absolute_limits.py",
              line 25, in setUpClass</div>
            <div>    super(AbsoluteLimitsTestJSON, cls).setUpClass()</div>
            <div>  File
              "/opt/stack/tempest/tempest/api/compute/base.py", line
              183, in setUpClass</div>
            <div>    super(BaseV2ComputeTest, cls).setUpClass()</div>
            <div>
                File "/opt/stack/tempest/tempest/api/compute/base.py",
              line 39, in setUpClass</div>
            <div>    os = cls.get_client_manager()</div>
            <div>  File "/opt/stack/tempest/tempest/test.py", line 288,
              in get_client_manager</div>
            <div>    creds = cls.isolated_creds.get_primary_creds()</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/isolated_creds.py",
              line 367, in get_primary_creds</div>
            <div>    user, tenant = self._create_creds()</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/isolated_creds.py",
              line 166, in _create_creds</div>
            <div>    description=tenant_desc)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/isolated_creds.py",
              line 81, in _create_tenant</div>
            <div>    name=name, description=description)</div>
            <div>  File
              "/opt/stack/tempest/tempest/services/identity/json/identity_client.py",
              line 63, in create_tenant</div>
            <div>    resp, body = self.post('tenants', post_body,
              self.headers)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/rest_client.py", line
              154, in post</div>
            <div>    return self.request('POST', url, headers, body)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/rest_client.py", line
              276, in request</div>
            <div>    headers=headers, body=body)</div>
            <div>  File
              "/opt/stack/tempest/tempest/common/rest_client.py", line
              260, in _request</div>
            <div>    req_url, method, headers=req_headers,
              body=req_body)</div>
            <div>  File "/opt/stack/tempest/tempest/common/http.py",
              line 25, in request</div>
            <div>    return super(ClosingHttp, self).request(*args,
              **new_kwargs)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 1571, in request</div>
            <div>    (response, content) = self._request(conn,
              authority, uri, request_uri, method, body, headers,
              redirections, cachekey)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 1318, in _request</div>
            <div>    (response, content) = self._conn_request(conn,
              request_uri, method, body, headers)</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 1291, in _conn_request</div>
            <div>    conn.connect()</div>
            <div>  File
              "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
              line 913, in connect</div>
            <div>    raise socket.error, msg</div>
            <div>error: [Errno 110] Connection timed out</div>
            <div><br>
            </div>
            <div>----------------------------------------------------------------------</div>
            <div>Ran 0 tests in 509.420s</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
openstack-qa mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openstack-qa@lists.openstack.org">openstack-qa@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-qa">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-qa</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>