[Pkg-salt-team] Bug#922064: Bug#922064: Please restore previous version

Benjamin Drung benjamin.drung at cloud.ionos.com
Wed Mar 13 12:38:42 GMT 2019


Am Samstag, den 02.03.2019, 09:58 +0100 schrieb Dirk Heinrichs:
> Hi,
> 
> since the Salt master is still not starting, could the Salt packages
> at
> least be rolled back to the previous version until the problem is
> solved?

Rolling back the salt package does not help, because this bug is inside
psutil.

For further debugging, can change _pslinux.py and run it again:

diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index 41be6665..aa0a7940 100644
--- a/usr/lib/python3/dist-packages/psutil/_pslinux.py
+++ b/usr/lib/python3/dist-packages/psutil/_pslinux.py
@@ -401,7 +401,9 @@ def virtual_memory():
     with open_binary('%s/meminfo' % get_procfs_path()) as f:
         for line in f:
             fields = line.split()
-            mems[fields[0]] = int(fields[1]) * 1024
+            print("line: %r, fields: %r" % (line, fields))
+            if fields:
+                mems[fields[0]] = int(fields[1]) * 1024
 
     # /proc doc states that the available fields in /proc/meminfo vary
     # by architecture and compile options, but these 3 values are also

and let me know the output?

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

1&1 IONOS Cloud GmbH | Greifswalder Str. 207 | 10405 Berlin | Germany
E-mail: benjamin.drung at cloud.ionos.com | Web: www.ionos.de

Head Office: Berlin, Germany
District Court Berlin Charlottenburg, Registration number: HRB 125506 B
Executive Management: Christoph Steffens, Matthias Steinberg, Achim
Weiss

Member of United Internet



More information about the pkg-salt-team mailing list