RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2207776 - [spec] sos has a runtime-requires python-setuptools, but does not Require: it
Summary: [spec] sos has a runtime-requires python-setuptools, but does not Require: it
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: sos
Version: 9.2
Hardware: All
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: Miroslav Hradílek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-16 20:15 UTC by Neil Hanlon
Modified: 2023-11-07 11:40 UTC (History)
6 users (show)

Fixed In Version: sos-4.6.0-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:56:30 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 3241 0 None open [specfile] add runtime requirement to python3-setuptools 2023-05-16 20:40:22 UTC
Red Hat Issue Tracker RHELPLAN-157419 0 None None None 2023-05-16 20:17:06 UTC
Red Hat Product Errata RHEA-2023:6708 0 None None None 2023-11-07 08:56:31 UTC

Description Neil Hanlon 2023-05-16 20:15:18 UTC
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)
```

Comment 1 Pavel Moravec 2023-05-16 20:40:22 UTC
A good catch, https://github.com/sosreport/sos/pull/3241 raised for it.

Comment 6 Pavel Moravec 2023-06-27 13:54:30 UTC
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.

Comment 17 errata-xmlrpc 2023-11-07 08:56:30 UTC
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 (sos bug fix and enhancement update), 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/RHEA-2023:6708


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