ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    SaltStack ps.cpu_percent Error on MacOS

    Scheduled Pinned Locked Moved IT Discussion
    saltstackps.cpupercentmacosmacosx
    3 Posts 1 Posters 708 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      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'
      
      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          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
          
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post