SaltStack ps.cpu_percent Error on MacOS
-
We are seeing this error when the ps.cpu_percent command is called via SaltStack on MacOS clients. We are seeing this principally on MacOS 13, but believe that we were getting it on older versions as well.
The minion function caused an exception: 'ps.cpu_percent'
-
The issue is not a lack of psutil package for Python 2.7. I know that that is there and is working, it's been tested. I can import it and make the CPU call no problem.
-
Even though I know that it is there, I get this...
salt 'minion' ps.cpu_times minion: 'ps' __virtual__ returned False: The ps module cannot be loaded: python module psutil not installed. ERROR: Minions returned with non-zero exit code