saltstack/salt — Issue #759: Improve "ps" command for OpenVZ hardware nodes
Author: hathawsh
Created: 2012-02-25 17:11:33+00:00
State: open

When Salt is managing an OpenVZ hardware node, the command "ps -efH" returns information about all processes in all containers. This is very likely not what the sysadmin intends and it makes the service.status command return false positives.

When grains['virtual'] == 'openvzhn', a better setting for grains['ps'] would be 'vzps -E 0 -efH|cut -b 6-', which filters out guest processes and formats the output similarly to the standard 'ps' command.