Bug 2039982
Summary: | resource probe return codes other than OCF_NOT_RUNNING all reported as error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Ken Gaillot <kgaillot> |
Component: | pacemaker | Assignee: | Chris Lumens <clumens> |
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 9.0 | CC: | clumens, cluster-maint, cluster-qe, jruemker, kgaillot, msmazova, sbradley |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 9.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | pacemaker-2.1.2-3.el9 | Doc Type: | Enhancement |
Doc Text: |
Feature: If a resource agent returns 2 (parameter invalid locally) or 5 (not installed) for a probe action (non-recurring monitor), Pacemaker will treat that as if the agent returned 7 (not running).
Reason: Users sometimes intentionally leave software uninstalled or unconfigured on a node that will never run the associated cluster resource (due to location constraints, etc.). Previously, unless the individual resource agent implemented a workaround, this would result in probe failures showing up in status displays, which would make it more difficult to notice real problems.
Result: If a probe returns not installed or not configured, that will no longer be displayed as a failed action, but rather as a reason when showing the resource as stopped.
|
Story Points: | --- |
Clone Of: | 1506372 | Environment: | |
Last Closed: | 2022-05-17 12:20:40 UTC | Type: | Enhancement |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1506372 | ||
Bug Blocks: |
Description
Ken Gaillot
2022-01-12 20:52:35 UTC
before fix ---------- See bug1506372#c12 after fix --------- > [root@virt-033 ~]# rpm -q pacemaker > pacemaker-2.1.2-4.el9.x86_64 > [root@virt-033 ~]# pcs status > Cluster name: STSRHTS5284 > Cluster Summary: > * Stack: corosync > * Current DC: virt-034 (version 2.1.2-4.el9-ada5c3b36e2) - partition with quorum > * Last updated: Wed Feb 23 11:09:10 2022 > * Last change: Tue Feb 22 11:43:56 2022 by root via cibadmin on virt-033 > * 2 nodes configured > * 2 resource instances configured > Node List: > * Online: [ virt-033 virt-034 ] > Full List of Resources: > * fence-virt-033 (stonith:fence_xvm): Started virt-033 > * fence-virt-034 (stonith:fence_xvm): Started virt-034 > Daemon Status: > corosync: active/disabled > pacemaker: active/disabled > pcsd: active/enabled Install package "bind", which provides "named" on only one of the cluster nodes. > [root@virt-034 ~]# rpm -q bind > bind-9.16.23-1.el9.x86_64 > [root@virt-033 ~]# rpm -q bind > package bind is not installed Start "named" on the node, where "bind" is installed: > [root@virt-034 ~]# systemctl start named && systemctl is-active named > active Create an ocf:heartbeat:named resource on the node, where "named" is not installed: > [root@virt-033 ~]# pcs resource create named1 ocf:heartbeat:named && pcs status > Cluster name: STSRHTS5284 > Cluster Summary: > * Stack: corosync > * Current DC: virt-034 (version 2.1.2-4.el9-ada5c3b36e2) - partition with quorum > * Last updated: Wed Feb 23 11:11:35 2022 > * Last change: Wed Feb 23 11:11:34 2022 by root via cibadmin on virt-033 > * 2 nodes configured > * 3 resource instances configured > Node List: > * Online: [ virt-033 virt-034 ] > Full List of Resources: > * fence-virt-033 (stonith:fence_xvm): Started virt-033 > * fence-virt-034 (stonith:fence_xvm): Started virt-034 > * named1 (ocf:heartbeat:named): Stopped (not installed) > Daemon Status: > corosync: active/disabled > pacemaker: active/disabled > pcsd: active/enabled Pcs status is not showing failed resource action. Resource named1 is Stopped. marking verified in pacemaker-2.1.2-4.el9 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 (new packages: pacemaker), 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-2022:2293 |