pcs fails to create a stonith device if specifying pcmk_reboot_action, pcmk_monitor_action, pcmk_status_action, or other pcmk_*_action attributes in RHEL 6 with pacemaker
Environment
- Red Hat Enterprise Linux (RHEL) 6 with the High Availability Add On
pacemaker
Issue
- If I try to create a stonith device and substitute an action,
pcsreturns an error:
# pcs stonith create kdump fence_kdump pcmk_reboot_action="off"
Error: resource option(s): 'pcmk_reboot_action', are not recognized for resource type: 'stonith:fence_kdump' (use --force to override)
Resolution
Upgrade to version pcs-0.9.123-9.el6.
Or ensure that the attribute being specified is actually relevant and supported for the agent in question. If it is, then use pcs --force ... to force it:
# pcs stonith create kdump fence_kdump pcmk_reboot_action="off" --force
Root Cause
This issue is being investigated by Red Hat Engineering in Bugzilla #1094517.
pcs does not recognize the pcmk_*_action attributes for fence agents. If forced, stonith-ng should use them correctly.
SBR
Product(s)
Components
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.