Bug 26249 - Kernel 5.5 breaks python psutil 5.6.7
Summary: Kernel 5.5 breaks python psutil 5.6.7
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: High normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-23 22:11 CET by Brian Fehr
Modified: 2021-09-07 14:11 CEST (History)
3 users (show)

See Also:
Source RPM: python-psutil-5.6.7-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Brian Fehr 2020-02-23 22:11:17 CET
Description of problem:

After upgrading to kernel 5.5.4, Glances no longer shows disk i/o. This is a result of kernel 5.5 adding 2 additional columns to /proc/diskstats. The python module psutil 5.6.7 raises on error when trying to read these values

Version-Release number of selected component (if applicable):

python-psutil-5.6.7-1.mga7

How reproducible:

verified on 5 different machines (desktop and server kernels, AMD and Intel)

Steps to Reproduce:
1. start 'python3'
2. run 'import psutil'
3. run 'psutil.disk_io_counters(perdisk=True)'

result:
Python 3.7.6 (default, Jan 21 2020, 20:43:18) 
[GCC 8.3.1 20190524] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.disk_io_counters(perdisk=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.7/site-packages/psutil/__init__.py", line 2168, in disk_io_counters
    rawdict = _psplatform.disk_io_counters(**kwargs)
  File "/usr/lib64/python3.7/site-packages/psutil/_pslinux.py", line 1125, in disk_io_counters
    for entry in gen:
  File "/usr/lib64/python3.7/site-packages/psutil/_pslinux.py", line 1098, in read_procfs
    raise ValueError("not sure how to interpret line %r" % line)
ValueError: not sure how to interpret line '   1       0 ram0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n'
>>> psutil.__version__
'5.6.7'

 ******

Python psutil 5.7 fixes this:
https://github.com/giampaolo/psutil/issues/1687

Glances uses this python module and now does not show disk i/o stats. Disk i/o stats were shown prior to kernel upgrade
Florian Hubold 2020-02-23 22:38:46 CET

CC: (none) => doktor5000

Comment 1 Lewis Smith 2020-02-24 21:11:40 CET
@Brian: Thank you for pointing all this out.

python3-psutil is required by quite a lot of packages, which might be effected:
 certbot
 glances
 isodumper
 mate-tweak
 menulibre
 nagstamon
 odoo11
 pagure
 python3-neovim-remote
 python3-polkit-efl-agent
 python3-psutil
 python3-tracer
 python3-xapp
 rapid-photo-downloader
 spyder
 steamcontroller
python2-psutil similarly:
 ajenti
 calibre
 compatibleone-testsuite
 fedmsg
 noethys
 odoo
 openerp-server
 python-polkit-efl-agent
 python2-psutil
 python2-xapp
 terminator

Because of this, I was tempted to raise the Priority; but did not, since the change is only about disc I/O which is probably not used everywhere.

This SRPM has varied committers, so assigning the bug globally; CC'ing NicolasL as the registered maintainer.

Priority: Normal => High
Assignee: bugsquad => pkg-bugs
CC: (none) => mageia

Comment 2 Brian Fehr 2020-02-29 23:13:20 CET
After some further testing, Python psutil 5.7 disk I/O but breaks cpu temps by repeating each core's temperature list twice. While double listing info is not good its better than no list. So, still probably need to hold up off on an update.
Comment 3 Aurelien Oudelet 2020-09-19 18:08:53 CEST
Hi,
This is High priority bug for a good reason.

Making Mageia even better than ever is best direction.
In order to do right thing, this bug should be examined and fixed as soon as possible.

Packagers, please make the status to Assigned when you are working on this.
Feel free to reassign the bug if bad-triaged. Also, if bug is old, please close it.

On October 1st 2020, we will drop priority to normal.
Comment 4 David Walser 2020-09-23 00:32:12 CEST
We have 5.7.2 in Cauldron now, thanks to David Geiger.  Maybe we can update Mageia 7 to this version too.

CC: (none) => geiger.david68210

Comment 5 Aurelien Oudelet 2021-07-06 13:14:12 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 6 Marja Van Waes 2021-09-07 14:11:18 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Resolution: (none) => OLD
Status: NEW => RESOLVED


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