Bug 1942806
Summary: | AttributeError occured when run python 3 bootstrap.py on RHEL9.0 Alpha | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | yanpliu <yanpliu> |
Component: | Bootstrap | Assignee: | Evgeni Golov <egolov> |
Status: | CLOSED ERRATA | QA Contact: | Stephen Wadeley <swadeley> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.9.0 | CC: | egolov, kladiv, pcreech, qianzhan |
Target Milestone: | 6.11.0 | Keywords: | Triaged |
Target Release: | Unused | ||
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: | 2022-07-05 14:28:51 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: |
Description
yanpliu
2021-03-25 03:36:46 UTC
Same issue (Red Hat Satellite 6.9.4 and RHEL9.0) According to a comment found here (https://github.com/FabriceSalvaire/CodeReview/issues/48) - "platform.dist" is deprecated since python version 2.6. - "platform.linux_distribution" was the successor but is deprecated since Python 3.5 and removed in Python 3.8 This seem to be the successor: https://pypi.org/project/distro/ Kind Regards, Claudio Moreover i see in Foreman GitHub this code block: try: # pylint:disable=deprecated-method RELEASE = platform.linux_distribution()[1] except AttributeError: try: # pylint:disable=deprecated-method,no-member RELEASE = platform.dist()[1] except AttributeError: RELEASE = release_from_etc() In "release_from_etc()" function there' a note: "Used on systems with Python 3.8+ which doesn't provide that in the platform module anymore." We need the backport for RedHat Satellite 6.9+ (possibly) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5498 |