← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1720062] [NEW] Nova unit tests are failing

 

Public bug reported:

Following nova unit tests are failing, when running with testtools using
below command.

$ python -m testtools.run nova.tests.unit.test_wsgi

[1] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_two_servers
[2] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_ssl_server
[3] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_app_using_ipv6_and_ssl

Traceback is similar caused by the SSLError, CertificateError. It's
because hostname doesn't match one from cert, sample:

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "nova/tests/unit/test_wsgi.py", line 278, in test_two_servers
        verify=os.path.join(SSL_CERT_DIR, 'ca.crt'), data='PING')
      File "/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
        return request('post', url, data=data, json=json, **kwargs)
      File "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
        return session.request(method=method, url=url, **kwargs)
      File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
        resp = self.send(prep, **send_kwargs)
      File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
        r = adapter.send(request, **kwargs)
      File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 506, in send
        raise SSLError(e, request=request)
    requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=38499): Max retries exceeded with url: / (Caused by SSLError(CertificateError("hostname '127.0.0.1' doesn't match either of 'localhost', 'ip6-localhost'",),))

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

- Following nova unit tests are failing, when running with below command.
+ Following nova unit tests are failing, when running with testtools using
+ below command.
  
  $ python -m testtools.run nova.tests.unit.test_wsgi
  
  [1] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_two_servers
  [2] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_ssl_server
  [3] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_app_using_ipv6_and_ssl
  
  Traceback is similar caused by the SSLError, CertificateError. It's
  because hostname doesn't match one from cert, sample:
  
- 
  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
-     Traceback (most recent call last):
-       File "nova/tests/unit/test_wsgi.py", line 278, in test_two_servers
-         verify=os.path.join(SSL_CERT_DIR, 'ca.crt'), data='PING')
-       File "/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
-         return request('post', url, data=data, json=json, **kwargs)
-       File "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
-         return session.request(method=method, url=url, **kwargs)
-       File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
-         resp = self.send(prep, **send_kwargs)
-       File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
-         r = adapter.send(request, **kwargs)
-       File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 506, in send
-         raise SSLError(e, request=request)
-     requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=38499): Max retries exceeded with url: / (Caused by SSLError(CertificateError("hostname '127.0.0.1' doesn't match either of 'localhost', 'ip6-localhost'",),))
+     Traceback (most recent call last):
+       File "nova/tests/unit/test_wsgi.py", line 278, in test_two_servers
+         verify=os.path.join(SSL_CERT_DIR, 'ca.crt'), data='PING')
+       File "/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
+         return request('post', url, data=data, json=json, **kwargs)
+       File "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
+         return session.request(method=method, url=url, **kwargs)
+       File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
+         resp = self.send(prep, **send_kwargs)
+       File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
+         r = adapter.send(request, **kwargs)
+       File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 506, in send
+         raise SSLError(e, request=request)
+     requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=38499): Max retries exceeded with url: / (Caused by SSLError(CertificateError("hostname '127.0.0.1' doesn't match either of 'localhost', 'ip6-localhost'",),))

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1720062

Title:
  Nova unit tests are failing

Status in OpenStack Compute (nova):
  New

Bug description:
  Following nova unit tests are failing, when running with testtools
  using below command.

  $ python -m testtools.run nova.tests.unit.test_wsgi

  [1] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_two_servers
  [2] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_ssl_server
  [3] nova.tests.unit.test_wsgi.TestWSGIServerWithSSL.test_app_using_ipv6_and_ssl

  Traceback is similar caused by the SSLError, CertificateError. It's
  because hostname doesn't match one from cert, sample:

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "nova/tests/unit/test_wsgi.py", line 278, in test_two_servers
          verify=os.path.join(SSL_CERT_DIR, 'ca.crt'), data='PING')
        File "/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
          return request('post', url, data=data, json=json, **kwargs)
        File "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
          return session.request(method=method, url=url, **kwargs)
        File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
          resp = self.send(prep, **send_kwargs)
        File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
          r = adapter.send(request, **kwargs)
        File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 506, in send
          raise SSLError(e, request=request)
      requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=38499): Max retries exceeded with url: / (Caused by SSLError(CertificateError("hostname '127.0.0.1' doesn't match either of 'localhost', 'ip6-localhost'",),))

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1720062/+subscriptions


Follow ups