Bug 2207776
| Summary: | [spec] sos has a runtime-requires python-setuptools, but does not Require: it | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Neil Hanlon <neil> |
| Component: | sos | Assignee: | Pavel Moravec <pmoravec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Miroslav HradĂlek <mhradile> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.2 | CC: | agk, jcastillo, mhradile, plambri, sbradley, theute |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | sos-4.5.4-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-06-27 13:54:30 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: | |||
A good catch, https://github.com/sosreport/sos/pull/3241 raised for it. Hello, this bug is assumed to be fixed in errata https://access.redhat.com/errata/RHBA-2023:3801 so I am closing this BZ as fixed in current release. If you feel otherwise, please reopen the BZ and provide details what is missing. |
Description of problem: sos report does not pull in python3-setuptools, leading to to the output below (in Additional Information). Version-Release number of selected component (if applicable): 4.5.1-3.el9_2 How reproducible: always Steps to Reproduce: 1. Install a system without python3-setuptools 2. `dnf -y install sos` 3. `sos` <-- Failure will occur here 4. `dnf -y install python3-sos` 4. `sos` <-- SOS will now work Actual results: `sos` command fails to run due to missing runtime dependency Expected results: `dnf -y install sos` pulls in python3-setuptools as a requirement Additional info: ``` [root@3e846a53ceae /]# sos report Traceback (most recent call last): File "/usr/sbin/sos", line 21, in <module> sos = SoS(sys.argv[1:]) File "/usr/lib/python3.9/site-packages/sos/__init__.py", line 60, in __init__ import sos.report File "/usr/lib/python3.9/site-packages/sos/report/__init__.py", line 19, in <module> import sos.report.plugins File "/usr/lib/python3.9/site-packages/sos/report/plugins/__init__.py", line 13, in <module> from sos.utilities import (sos_get_command_output, import_module, grep, File "/usr/lib/python3.9/site-packages/sos/utilities.py", line 26, in <module> from pkg_resources import parse_version as version_parse ModuleNotFoundError: No module named 'pkg_resources' [root@3e846a53ceae /]# dnf -y install python3-setuptools ... Installed: python3-setuptools-53.0.0-12.el9.noarch [root@3e846a53ceae /]# sos report sosreport (version 4.5.1) ```