Test failures with Python 3.12: AssertionError: No certificate failure message is received

Bug #2069682 reported by Michał Górny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
New
Undecided
Unassigned

Bug Description

When running the test suite on Python 3.12.4, the following tests fail. This is a serious problem for Gentoo users since Gentoo is on 3.12 for half a month already. I have been able to reproduce the problem on git master (59331d56eb9f7d4bb19f05c251e17161a3e8c98d), with `tox -e py312`.

==============================
Failed 4 tests - output below:
==============================

glanceclient.tests.unit.test_ssl.TestHTTPSVerifyCert.test_v1_requests_cert_verification
---------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
    conn.connect()

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 1042, in _create
    self.do_handshake()

      File "/usr/lib/python3.12/ssl.py", line 1320, in do_handshake
    self._sslobj.do_handshake()

    ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='0.0.0.0', port=38195): Max retries exceeded with url: /v1/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 268, in _request
    resp = self.session.request(method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)

    requests.exceptions.SSLError: HTTPSConnectionPool(host='0.0.0.0', port=38195): Max retries exceeded with url: /v1/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 87, in test_v1_requests_cert_verification
    client.images.get('image123')

      File "/tmp/python-glanceclient/glanceclient/v1/images.py", line 130, in get
    resp, body = self.client.head('/v1/images/%s'
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 311, in head
    return self._request('HEAD', url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 281, in _request
    raise exc.CommunicationError(message=message)

    glanceclient.exc.CommunicationError: Error finding address for https://0.0.0.0:38195/v1/images/image123: HTTPSConnectionPool(host='0.0.0.0', port=38195): Max retries exceeded with url: /v1/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/usr/lib/python3.12/unittest/mock.py", line 1390, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 91, in test_v1_requests_cert_verification
    self.fail('No certificate failure message is received')

      File "/usr/lib/python3.12/unittest/case.py", line 715, in fail
    raise self.failureException(msg)

    AssertionError: No certificate failure message is received

glanceclient.tests.unit.test_ssl.TestHTTPSVerifyCert.test_v2_requests_cert_verification_no_compression
------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
    conn.connect()

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 1042, in _create
    self.do_handshake()

      File "/usr/lib/python3.12/ssl.py", line 1320, in do_handshake
    self._sslobj.do_handshake()

    ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='0.0.0.0', port=55075): Max retries exceeded with url: /v2/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 268, in _request
    resp = self.session.request(method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)

    requests.exceptions.SSLError: HTTPSConnectionPool(host='0.0.0.0', port=55075): Max retries exceeded with url: /v2/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 137, in test_v2_requests_cert_verification_no_compression
    gc.images.get('image123')

      File "/tmp/python-glanceclient/glanceclient/v2/images.py", line 197, in get
    return self._get(image_id)
           ^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/utils.py", line 652, in inner
    return RequestIdProxy(wrapped(*args, **kwargs))
                          ^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/v2/images.py", line 190, in _get
    resp, body = self.http_client.get(url, headers=header)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 314, in get
    return self._request('GET', url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 281, in _request
    raise exc.CommunicationError(message=message)

    glanceclient.exc.CommunicationError: Error finding address for https://0.0.0.0:55075/v2/images/image123: HTTPSConnectionPool(host='0.0.0.0', port=55075): Max retries exceeded with url: /v2/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/usr/lib/python3.12/unittest/mock.py", line 1390, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 141, in test_v2_requests_cert_verification_no_compression
    self.fail('No certificate failure message is received')

      File "/usr/lib/python3.12/unittest/case.py", line 715, in fail
    raise self.failureException(msg)

    AssertionError: No certificate failure message is received

glanceclient.tests.unit.test_ssl.TestHTTPSVerifyCert.test_v1_requests_cert_verification_no_compression
------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
    conn.connect()

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 1042, in _create
    self.do_handshake()

      File "/usr/lib/python3.12/ssl.py", line 1320, in do_handshake
    self._sslobj.do_handshake()

    ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='0.0.0.0', port=41435): Max retries exceeded with url: /v1/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 268, in _request
    resp = self.session.request(method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)

    requests.exceptions.SSLError: HTTPSConnectionPool(host='0.0.0.0', port=41435): Max retries exceeded with url: /v1/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 104, in test_v1_requests_cert_verification_no_compression
    client.images.get('image123')

      File "/tmp/python-glanceclient/glanceclient/v1/images.py", line 130, in get
    resp, body = self.client.head('/v1/images/%s'
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 311, in head
    return self._request('HEAD', url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 281, in _request
    raise exc.CommunicationError(message=message)

    glanceclient.exc.CommunicationError: Error finding address for https://0.0.0.0:41435/v1/images/image123: HTTPSConnectionPool(host='0.0.0.0', port=41435): Max retries exceeded with url: /v1/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/usr/lib/python3.12/unittest/mock.py", line 1390, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 108, in test_v1_requests_cert_verification_no_compression
    self.fail('No certificate failure message is received')

      File "/usr/lib/python3.12/unittest/case.py", line 715, in fail
    raise self.failureException(msg)

    AssertionError: No certificate failure message is received

glanceclient.tests.unit.test_ssl.TestHTTPSVerifyCert.test_v2_requests_cert_verification
---------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
    conn.connect()

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 455, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.12/ssl.py", line 1042, in _create
    self.do_handshake()

      File "/usr/lib/python3.12/ssl.py", line 1320, in do_handshake
    self._sslobj.do_handshake()

    ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='0.0.0.0', port=48163): Max retries exceeded with url: /v2/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 268, in _request
    resp = self.session.request(method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/.tox/py312/lib/python3.12/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)

    requests.exceptions.SSLError: HTTPSConnectionPool(host='0.0.0.0', port=48163): Max retries exceeded with url: /v2/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 120, in test_v2_requests_cert_verification
    gc.images.get('image123')

      File "/tmp/python-glanceclient/glanceclient/v2/images.py", line 197, in get
    return self._get(image_id)
           ^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/utils.py", line 652, in inner
    return RequestIdProxy(wrapped(*args, **kwargs))
                          ^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/v2/images.py", line 190, in _get
    resp, body = self.http_client.get(url, headers=header)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 314, in get
    return self._request('GET', url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/common/http.py", line 281, in _request
    raise exc.CommunicationError(message=message)

    glanceclient.exc.CommunicationError: Error finding address for https://0.0.0.0:48163/v2/images/image123: HTTPSConnectionPool(host='0.0.0.0', port=48163): Max retries exceeded with url: /v2/images/image123 (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1004)')))

During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

      File "/usr/lib/python3.12/unittest/mock.py", line 1390, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/tmp/python-glanceclient/glanceclient/tests/unit/test_ssl.py", line 124, in test_v2_requests_cert_verification
    self.fail('No certificate failure message is received')

      File "/usr/lib/python3.12/unittest/case.py", line 715, in fail
    raise self.failureException(msg)

    AssertionError: No certificate failure message is received

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.