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 1850391 - Importing procfs fails with missing module error
Summary: Importing procfs fails with missing module error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-linux-procfs
Version: 8.3
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: 8.3
Assignee: John Kacur
QA Contact: Mike Stowell
URL:
Whiteboard:
Depends On:
Blocks: 1823810
TreeView+ depends on / blocked
 
Reported: 2020-06-24 08:37 UTC by Matej Marušák
Modified: 2020-11-04 02:11 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:09:48 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
Fix import of utilist (862 bytes, patch)
2020-06-24 19:28 UTC, John Kacur
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4584 0 None None None 2020-11-04 02:09:54 UTC

Description Matej Marušák 2020-06-24 08:37:43 UTC
Description of problem:

Running 'tuned-adm recommend' on the latests rhel 8.3 nightly image (cockpit CI images [1]) fails with missing module error.

Version-Release number of selected component (if applicable):
tuned-2.14.0-1.el8.noarch

How reproducible:
`dnf install tuned` and then `tuned-adm recommend`.

Actual results:
```
  File "/usr/sbin/tuned-adm", line 26, in <module>
    import tuned.admin
  File "/usr/lib/python3.6/site-packages/tuned/admin/__init__.py", line 1, in <module>
    from .admin import *
  File "/usr/lib/python3.6/site-packages/tuned/admin/admin.py", line 9, in <module>
    from tuned.utils.profile_recommender import ProfileRecommender
  File "/usr/lib/python3.6/site-packages/tuned/utils/profile_recommender.py", line 4, in <module>
    import procfs
  File "/usr/lib/python3.6/site-packages/procfs/__init__.py", line 28, in <module>
    from .procfs import *
  File "/usr/lib/python3.6/site-packages/procfs/procfs.py", line 24, in <module>
    from utilist import bitmasklist
ModuleNotFoundError: No module named 'utilist'
```

Expected results:
Would show recommended profile.


Additional info:
[1] https://github.com/cockpit-project/bots/pull/1007

Comment 1 Ondřej Lysoněk 2020-06-24 08:50:42 UTC
Hi,

this is a python3-linux-procfs bug. It fails on import:
>>> import procfs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/procfs/__init__.py", line 28, in <module>
    from .procfs import *
  File "/usr/lib/python3.6/site-packages/procfs/procfs.py", line 24, in <module>
    from utilist import bitmasklist
ModuleNotFoundError: No module named 'utilist'

Version-Release number of selected component (if applicable):
python3-linux-procfs-0.6.2-1.el8.noarch

Comment 2 Ondřej Lysoněk 2020-06-24 09:36:27 UTC
This was even caught by gating, but the failure was waived. I don't understand on what grounds. Can you explain, John?

The problematic build is python-linux-procfs-0.6.2-1.el8. The gating waiver comment for that build says 'bz1849215'. And that bug is said to be fixed in python-linux-procfs-0.6.2-1.el8, i.e. the same build. I don't get it..

Comment 3 John Kacur 2020-06-24 19:28:59 UTC
Created attachment 1698706 [details]
Fix import of utilist

If procfs/utilist.py is not in your PYTHONPATH, the import can fail.
Specify it fully

Comment 11 errata-xmlrpc 2020-11-04 02:09:48 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 (python-linux-procfs 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/RHBA-2020:4584


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