Bug 2058246
Summary: | Prevent fence_sbd in combination with stonith-watchdog-timeout>0 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Tomas Jelinek <tojeline> |
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> |
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
Severity: | urgent | Docs Contact: | Steven J. Levine <slevine> |
Priority: | urgent | ||
Version: | 9.0 | CC: | cluster-maint, cluster-qe, idevat, kmalyjur, kwenning, lichen, mlisik, mmazoure, mpospisi, nhostako, omular, sbradley, slevine, tojeline |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 9.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | pcs-0.11.2-1.el9 | Doc Type: | Bug Fix |
Doc Text: |
.`pcs` now validates the value of `stonith-watchdog-timeout`
Previously, it was possible to set the `stonith-watchdog-timeout` property to a value that is incompatible with SBD configuration. This could result in a fence loop, or could cause the cluster to consider a fencing action to be successful even if the action is not finished. With this fix, `pcs` validates the value of `stonith-watchdog-property` when you set it, to prevent incorrect configuration.
|
Story Points: | --- |
Clone Of: | 1954099 | Environment: | |
Last Closed: | 2022-11-15 09:48:38 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
Tomas Jelinek
2022-02-24 15:03:25 UTC
Upstream patch: https://github.com/ClusterLabs/pcs/commit/757ff70475d330af825e431445b4f5b4a42c7597 Test: Using 'pcs property set stonith-watchdog-timeout=<value>', set stonith-watchdog-timeout to * 0, * a value greater than SBD_WATCHDOG_TIMEOUT, * a value not greater than SBD_WATCHDOG_TIMEOUT, * an empty value (unset). Do it while: * SBD is disabled, * SBD is enabled with no devices, * SBD is enabled with devices. Verify that pcs returns an error and doesn't set the property in situation which would lead to fence loops or unreliable fencing. DevTestResults: [root@r91-1 ~]# rpm -q pcs pcs-0.11.2-1.el9.x86_64 1) enabled with devices [root@r91-1 ~]# pcs stonith sbd config SBD_DELAY_START=no SBD_STARTMODE=always SBD_WATCHDOG_TIMEOUT=5 Watchdogs: r91-1: /dev/watchdog r91-2: /dev/watchdog r91-3: /dev/watchdog Devices: r91-1: "/dev/disk/by-id/scsi-SLIO-ORG_r91-disk-01_7ad95d75-3cf3-448e-a591-42b9ba690b22" r91-2: "/dev/disk/by-id/scsi-SLIO-ORG_r91-disk-01_7ad95d75-3cf3-448e-a591-42b9ba690b22" r91-3: "/dev/disk/by-id/scsi-SLIO-ORG_r91-disk-01_7ad95d75-3cf3-448e-a591-42b9ba690b22" [root@r91-1 ~]# pcs property set stonith-watchdog-timeout=-1 Error: stonith-watchdog-timeout can only be unset or set to 0 while SBD is enabled with devices, use --force to override [root@r91-1 ~]# pcs property set stonith-watchdog-timeout=0 [root@r91-1 ~]# pcs property | grep stonith-watchdog-timeout stonith-watchdog-timeout: 0 [root@r91-1 ~]# pcs property set stonith-watchdog-timeout= [root@r91-1 ~]# pcs property | grep stonith-watchdog-timeout 2) enabled without devices [root@r91-1 ~]# pcs stonith sbd config SBD_DELAY_START=no SBD_STARTMODE=always SBD_WATCHDOG_TIMEOUT=5 Watchdogs: r91-1: /dev/watchdog r91-2: /dev/watchdog r91-3: /dev/watchdog [root@r91-1 ~]# pcs property set stonith-watchdog-timeout=3 Error: The stonith-watchdog-timeout must be greater than SBD watchdog timeout '5', entered '3', use --force to override [root@r91-1 ~]# pcs property set stonith-watchdog-timeout=-1 Error: The stonith-watchdog-timeout must be greater than SBD watchdog timeout '5', entered '-1', use --force to override [root@r91-1 ~]# pcs property set stonith-watchdog-timeout=10 [root@r91-1 ~]# pcs property | grep stonith-watchdog-timeout stonith-watchdog-timeout: 10 3) disabled [root@r91-1 ~]# pcs stonith sbd status SBD STATUS <node name>: <installed> | <enabled> | <running> r91-3: YES | NO | NO r91-1: YES | NO | NO r91-2: YES | NO | NO root@r91-1 ~]# pcs property set stonith-watchdog-timeout=-1 Error: stonith-watchdog-timeout can only be unset or set to 0 while SBD is disabled [root@r91-1 ~]# pcs property | grep stonith-watchdog-timeout stonith-watchdog-timeout: 0 [root@r91-1 ~]# pcs property set stonith-watchdog-timeout= [root@r91-1 ~]# pcs property | grep stonith-watchdog-timeout Added doc text from RHEL 8 version of this bug fix: https://bugzilla.redhat.com/show_bug.cgi?id=1954099 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 (Moderate: pcs security, bug fix, and enhancement update), 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/RHSA-2022:7935 |