ps.top raises ValueError "too many values to unpack" when psutil > 4.1.0 #34170
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
fixed-pls-verify
fix is linked, bug author to confirm fix
P4
Priority 4
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue/Question
salt-call pip.install psutil
output: installs psutil 4.3.0 (current stable release)
salt-call ps.top
output:
Investigating this on the minion:
psutil.Process.cpu_times() now returns more than expected two values on Linux but not windows and OS X according to the documentation.
Salt documentation does not mention a requirement for psutil <=4.10 and the module does not handle the newer return value. Searching the issues for 'psutil' turns up several compatibility issues elsewhere, but none in the ps.top module. It is possible this issue is part of a larger cross-platform compatibility problem in the ps module.
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
psutil should be version 4.3.0
In 4.1.0 new fields were added, "Changed in version 4.1.0: return two extra fields: children_user and children_system." http://pythonhosted.org/psutil/
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)Salt Version:
Salt: 2016.3.1 (as on master)
The text was updated successfully, but these errors were encountered: