Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2292039

Summary: It is impossible to set custom action for fence_ipmilan device via FencingConfig
Product: Red Hat OpenStack Reporter: Alex Stupnikov <astupnik>
Component: puppet-pacemakerAssignee: Luca Miccini <lmiccini>
Status: CLOSED ERRATA QA Contact: Nobody <nobody>
Severity: medium Docs Contact:
Priority: low    
Version: 17.1 (Wallaby)CC: jjoyce, jschluet, lmiccini, mariel, slinaber, tvignaud
Target Milestone: z4Keywords: Triaged
Target Release: 17.1   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: puppet-pacemaker-1.5.1-17.1.20240710150813.f10ce89.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-21 09:41:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex Stupnikov 2024-06-12 15:15:09 UTC
Description of problem:
The root cause behind this problem is error message returned by "pcs stonith update" command when asked to set action attribute:
[root@controller-0 ~]# pcs stonith update stonith-fence_ipmilan-5254006a8489 action=off
Error: stonith option 'action' is deprecated and should not be used, use 'pcmk_off_action', 'pcmk_reboot_action' instead, use --force to override

While it is possible to use --force argument to update device regardless, puppet-pacemaker doesn't have this option and doesn't support pcmk_reboot_action attribute. As a result, we have the following situation:

- when "action" attribute is set via FencingConfig, deployment fails with the following error:
  puppet-user: Error: stonith option 'action' is deprecated and should not be used, use 'pcmk_off_action', 'pcmk_reboot_action' instead, use --force to override"
- when "pcmk_off_action" attribute is set via FencingConfig, deployment fails with the following error:
  Error: Evaluation Error: Error while evaluating a Resource Statement, Pacemaker::Stonith::Fence_ipmilan[52:54:00:6a:84:89]: has no parameter named 'pcmk_reboot_action' (file: /etc/puppet/modules/tripleo/manifests/fencing.pp, line: 132) on node controller-0.redhat.local"


Version-Release number of selected component (if applicable):
This problem was originally reported in RHOSP 16.2, but it would be nice to get a fix in RHOSP 17.1 if possible.


How reproducible:
See description

Actual results:
Deployment fails when "action" or "pcmk_off_action" attributes are defined via FencingConfig 

Expected results:
At least one of attributes works

Comment 11 Luca Miccini 2024-10-21 12:25:34 UTC
    - agent: fence_ipmilan
      host_mac: 52:54:00:5e:72:72
      params:
        delay: 20
        ipaddr: 172.16.0.1
        ipport: '6232'
        lanplus: true
        login: admin
        passwd: password
        pcmk_reboot_action: 'off'


=> 

  Resource: stonith-fence_ipmilan-5254005e7272 (class=stonith
      type=fence_ipmilan)
    Attributes: stonith-fence_ipmilan-5254005e7272-instance_attributes
      delay=20
      ipaddr=172.16.0.1
      ipport=6232
      lanplus=true
      login=admin
      passwd=password
      pcmk_host_list=controller-0
      pcmk_reboot_action=off

Comment 16 errata-xmlrpc 2024-11-21 09:41:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (RHOSP 17.1.4 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:9974