Bug 2222805
Summary: | salt fails to import with Python 3.12 in Fedora 39 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Maxwell G <maxwell> |
Component: | salt | Assignee: | Kirill Ponomarev <kp> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | david-dm.murphy, derek, gwync, kp, mhroncok, rcallicotte |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-07-24 17:34:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 2223440 | ||
Bug Blocks: | 2135404, 2220461 |
Description
Maxwell G
2023-07-13 18:38:25 UTC
I suppose the code in salt assumes that we are at an old Python version when ssl.match_hostname cannot be imported. This observation is consistent with how the requirement is specified in https://github.com/saltstack/salt/blob/v3006.1/requirements/static/pkg/linux.in#L4 backports.ssl_match_hostname>=3.7.0.1; python_version < '3.7' salt upstream needs to be fixed to either bring this dependency in also on Python 3.12+ (however, as said in bz2223440: backports.ssl_match_hostname is dead upstream -- it's a backport of Python 3.5 code for older Pythons -- I strongly advise against reanimating the package) or using e.g. the urllib3.util.ssl_match_hostname from the actively maintained urllib3 package, which is transitively required by salt anyway (trough requests). I've created a patch to use urllib3.util.ssl_match_hostname. It works, but I'm not sending it upstream, as the nect release will be dropping the bundled tornado code. |