Description of problem: In rhel6 cluster we could use "fence_node -S <nodename>" to get status from fence device used by a cluster node. This help to determine if the configuration options used for fence device was correct. I do not believe a similar behavior exists in RHEL 7 or RHEL 8. - How to test fence devices and fencing configuration in a Red Hat High Availability cluster? https://access.redhat.com/solutions/18803 I believe we should open an RFE to request a similar option in RHEL 8. For example: # stonith_admin -S <nodename> or # pcs stonith debug-monitor <stonith id> The command returns status output and if debug enabled, then print debug information to see why failed.
FYI pacemaker already has this capability with "stonith_admin --query <device-id>". It will run the device's "monitor" action, and if that fails, it will also run the device's "list" action (not sure why). I'm assuming, based on the description, that the goal is more for the status of a particular fence device, without regard to any node name. The distinction is that in pacemaker, a node might be fenced by multiple fence devices -- which may be an "and" or "or" type of situation. So going by node name would be more complicated and require a new stonith_admin option. If we're just interested in a device, a pcs wrapper is all we need.
(In reply to Ken Gaillot from comment #1) > FYI pacemaker already has this capability with "stonith_admin --query > <device-id>". It will run the device's "monitor" action, and if that fails, > it will also run the device's "list" action (not sure why). I should point out the current limitations: it will only work when run on a node that is "running" the fence device; and it does not output anything, it just returns a status code.