Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cause:
The user creates a fence device in a cluster.
Consequence:
Pcs fails stating the user did not specified some of the device's required parameters. The same command was working before. It is because fence agents now may have more than one parameters for configuring the same option, one of the parameters obsoletes all others.
Fix:
Pcs ignores the new parameters so they are not required to be set.
Result:
It is possible to create a fence device using the same command as before.
Fence agents (from fence-agents-4.0.11-57.el7) have new attributes for <parameter> tag.
deprecated="1" -> parameter will be removed one day (2020+)
obsoletes="old_name"
Reproducer:
[root@rh73-node2:~]# rpm -q fence-agents-all
fence-agents-all-4.0.11-47.el7.x86_64
[root@rh73-node2:~]# pcs stonith create test fence_ilo
Error: required resource option 'login' is missing, use --force to override
[root@rh73-node2:~]# pcs stonith create test fence_ilo login=test
[root@rh73-node2:~]# echo $?
0
[root@rh73-node2:~]# pcs stonith show
test (stonith:fence_ilo): Stopped
[root@rh73-node1:~]# rpm -q fence-agents-all
fence-agents-all-4.0.11-58.el7.x86_64
[root@rh73-node1:~]# pcs stonith create test fence_ilo
Error: required resource options 'login', 'username' are missing, use --force to override
[root@rh73-node1:~]# pcs stonith create test fence_ilo login=test
Error: required resource option 'username' is missing, use --force to override
For RHEL 7.4 we want to restore the behavior of fence-agents-all-4.0.11-47.el7. Pcs will not show nor require new options and will only work with the old (deprecated) options. In RHEL 7.5 the fence agents will do the validation and pcs will only need to handle displaying the options.
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, 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-2017:1958