Bug 2224013

Summary: ssl.wrap_socket() removal in Python 3.12 breaking upstream tests [rawhide,f38]
Product: [Fedora] Fedora Reporter: Julien Rische <jrische>
Component: krb5Assignee: Julien Rische <jrische>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: abokovoy, antorres, ftrivino, jrische, j, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 12:15:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.