Bug 2224013 - ssl.wrap_socket() removal in Python 3.12 breaking upstream tests [rawhide,f38]
Summary: ssl.wrap_socket() removal in Python 3.12 breaking upstream tests [rawhide,f38]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: krb5
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Julien Rische
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-19 14:54 UTC by Julien Rische
Modified: 2023-08-16 12:54 UTC (History)
7 users (show)

Fixed In Version: krb5-1.21.2-1.fc40 krb5-1.21.2-1.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 12:15:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github krb5 krb5 pull 1307 0 None open Replace ssl.wrap_socket() Python function 2023-07-19 14:55:40 UTC
Red Hat Issue Tracker FREEIPA-10167 0 None None None 2023-07-19 14:57:31 UTC

Description Julien Rische 2023-07-19 14:54:48 UTC
Upstream tests are currently failing on Fedora Rawhide.

PYTHONPATH=../util VALGRIND="" python3 ./t_proxy.py 
*** Failure: /usr/bin/python3 failed to start with code 1.
*** Last mark: untrusted issuer, hostname mismatch
*** Last command (#4): /usr/bin/python3 /tmp/tmp.YfMScvG3zc/krb5-tests/util/wsgiref-kdcproxy.py 61021 /tmp/tmp.YfMScvG3zc/krb5-tests/tests/proxy-certs/proxy-no-match.pem
*** Output of last command:
Traceback (most recent call last):
  File "/tmp/tmp.YfMScvG3zc/krb5-tests/util/wsgiref-kdcproxy.py", line 17, in <module>
    server.socket = ssl.wrap_socket(server.socket, certfile=pem, server_side=True)
                    ^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

The ssl.wrap_socket() function was removed from Python 3.12[1].

I opened a upstream pull request to fix this issue[2].

[1] https://docs.python.org/3.12/whatsnew/3.12.html#removed
[2] https://github.com/krb5/krb5/pull/1307

Reproducible: Always

Comment 1 Fedora Release Engineering 2023-08-16 08:13:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 2 Fedora Update System 2023-08-16 10:14:38 UTC
FEDORA-2023-763a42d865 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-763a42d865

Comment 3 Fedora Update System 2023-08-16 10:16:11 UTC
FEDORA-2023-4bce1554d6 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4bce1554d6

Comment 4 Fedora Update System 2023-08-16 12:15:37 UTC
FEDORA-2023-763a42d865 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2023-08-16 12:54:37 UTC
FEDORA-2023-4bce1554d6 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.