_pslinux.py disk activity fields incorrect for kernel 5.0.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-psutil (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Re: "glances" DISK I/O display under Ubuntu 18.04 LTS and Linux 5.0.0 HWE kernel
There is a bug in _pslinux.py present in both python-psutil and python3-psutil packages that prevents "glances" from displaying disk i/o activity:
lsb_release -d
Description: Ubuntu 18.04.3 LTS
uname -a
Linux beluga 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
apt policy glances
glances:
Installed: 2.11.1-3
Candidate: 2.11.1-3
Version table:
*** 2.11.1-3 500
500 http://
500 http://
100 /var/lib/
head -1 /usr/bin/glances
#!/usr/bin/python3
dpkg -S _pslinux.py
python3-psutil: /usr/lib/
python-psutil: /usr/lib/
root@beluga:~# diff /usr/lib/
apt policy python3-psutil
python3-psutil:
Installed: 5.4.2-1
Candidate: 5.4.2-1
Version table:
*** 5.4.2-1 500
500 http://
100 /var/lib/
Fix taken from: https:/
fdiff _pslinux.py
--- .old/_pslinux.
+++ _pslinux.py 2019-10-02 16:33:05.900067400 +0100
@@ -1062,7 +1062,7 @@
reads = int(fields[2])
- elif fields_len == 14:
+ elif fields_len == 14 or fields_len == 18:
# Linux 2.6+, line referring to a disk
name = fields[2]