Comment 2 for bug 1998343

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/866178
Committed: https://opendev.org/openstack/neutron/commit/26c55efe34f317409e4277154bac4617db0d57cc
Submitter: "Zuul (22348)"
Branch: master

commit 26c55efe34f317409e4277154bac4617db0d57cc
Author: Anton Kurbatov <email address hidden>
Date: Wed Nov 30 15:04:34 2022 +0000

    Do not emit ssl warnings in the test_ssl_connection test

    Since python3.10 we get a warning inside the ovs.stream module:

    Warnings: {message : DeprecationWarning('ssl.PROTOCOL_TLS is
    deprecated'), category : 'DeprecationWarning', filename :
    'python3.10/site-packages/ovs/stream.py', lineno : 794, line : None}

    or using python console:

    >>> ssl.SSLContext(ssl.PROTOCOL_SSLv23)
    <stdin>:1: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    <ssl.SSLContext object at 0x7f98620223c0>
    >>>

    This patch mocks the 'Connection.run' method that emits this warning
    inside a thread. This patch also fixes a failure in the
    test_distributed_port_binding_deleted_by_port_deletion test that was
    catching the ssl warning from test_ssl_connection and therefore
    failing.

    Closes-Bug: #1998343
    Signed-off-by: Anton Kurbatov <email address hidden>
    Change-Id: I6a4b9222a63a0d0271069eb12d0c97dd3821a2cc