FS#40924 - Need glances updated to latest git for Docker compatibility
Attached to Project:
Community Packages
Opened by Scott (firecat53) - Saturday, 21 June 2014, 15:27 GMT
Last edited by Sébastien Luttringer (seblu) - Sunday, 22 June 2014, 19:20 GMT
Opened by Scott (firecat53) - Saturday, 21 June 2014, 15:27 GMT
Last edited by Sébastien Luttringer (seblu) - Sunday, 22 June 2014, 19:20 GMT
|
Details
Description: Starting with glances 2.0, it fails to start
when a numeric process user exists, such as those sometimes
occurring with running Docker containers. See bug report
here:
https://github.com/nicolargo/glances/issues/380
Fixed in latest git version (see bug report for exact commit) Steps to reproduce: See bug report. |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Sunday, 22 June 2014, 19:20 GMT
Reason for closing: Won't fix
Additional comments about closing: 2.0.1 embed the fix.
Sunday, 22 June 2014, 19:20 GMT
Reason for closing: Won't fix
Additional comments about closing: 2.0.1 embed the fix.
Thanks,
Scott
@@ -141,7 +141,8 @@ def msg_curse(self, args=None):
msg = '{0:>6}'.format(p['pid'])
ret.append(self.curse_add_line(msg))
# USER
- msg = ' {0:9}'.format(p['username'][:9])
+ # docker internal users are displayed as ints only, therefore str()
+ msg = ' {0:9}'.format(str(p['username'])[:9])
ret.append(self.curse_add_line(msg))
# NICE
nice = p['nice']
Scott
Moreover, 2.0.1 ship the commit fixing the issue.