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.
Bug 2133546 - pgsql agent fails at cluster shutdown due to crm_mon regression
Summary: pgsql agent fails at cluster shutdown due to crm_mon regression
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: pacemaker
Version: 9.1
Hardware: All
OS: All
urgent
urgent
Target Milestone: rc
: 9.2
Assignee: Reid Wahl
QA Contact: cluster-qe@redhat.com
Steven J. Levine
URL:
Whiteboard:
Depends On: 2133497
Blocks: 2133911
TreeView+ depends on / blocked
 
Reported: 2022-10-10 20:01 UTC by Ken Gaillot
Modified: 2023-05-09 07:38 UTC (History)
8 users (show)

Fixed In Version: pacemaker-2.1.5-1.el9
Doc Type: Bug Fix
Doc Text:
.Cluster resources that call `crm_mon` now stop cleanly at shutdown Previously, the `crm_mon` utility returned a nonzero exit status while Pacemaker was in the process of shutting down. Resource agents that called `crm_mon` in their monitor action, such as `ocf:heartbeat:pqsql`, could incorrectly return a failure at cluster shutdown. With this fix, `crm_mon` returns success even if the cluster is in the process of shutting down. Resources that call `crm_mon` now stop cleanly at cluster shutdown.
Clone Of: 2133497
: 2133911 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:18:17 UTC
Type: Bug
Target Upstream Version: 2.1.5
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-6236 0 None None None 2022-12-01 17:21:49 UTC
Red Hat Issue Tracker RHELPLAN-136065 0 None None None 2022-10-10 20:18:02 UTC
Red Hat Knowledge Base (Solution) 6989079 0 None None None 2022-12-05 15:12:08 UTC
Red Hat Product Errata RHBA-2023:2150 0 None None None 2023-05-09 07:18:40 UTC

Description Ken Gaillot 2022-10-10 20:01:38 UTC
+++ This bug was initially created as a clone of Bug #2133497 +++

Description of problem: If the ocf:heartbeat:pgsql resource agent runs a monitor while Pacemaker is in the process of shutting down, it will incorrectly get an error.


Version-Release number of selected component (if applicable): RHEL 9.1 packages


How reproducible: reliably


Steps to Reproduce:
1. Configure a cluster with an ocf:heartbeat:pgsql resource with a frequent monitor. It helps to configure a slow resource (e.g. Dummy with a stop delay) to make the problem more likely.
2. Shut down the cluster.

Actual results: The pgsql resource fails a monitor.


Expected results: The cluster shuts down cleanly.


Additional info: This is a regression in the 9.1 packages.

Comment 5 Ken Gaillot 2022-10-12 21:42:35 UTC
Fixed in upstream main branch as of commit 2d4a36c0f

Comment 10 jrehova 2022-12-05 16:53:49 UTC
* 2 nodes cluster

Version of pacemaker:

> [root@virt-261 ~]# rpm -q pacemaker
> pacemaker-2.1.5-2.el9.x86_64

Created a resource with a stop delay and waited until it started:

> [root@virt-261 ~]# pcs resource create dummy ocf:pacemaker:Dummy op_sleep=10

> [root@virt-261 ~]# pcs resource
>   * dummy	(ocf:pacemaker:Dummy):	 Started virt-261

Stoped the cluster and run "pcs status" while the resource was stopping:

> [root@virt-261 ~]# pcs cluster stop --all &>/dev/null & sleep 10; pcs status; echo $?
> [1] 345834
> Cluster name: STSRHTS28390
> Status of pacemakerd: 'Pacemaker daemons are shutting down' (last updated 2022-12-05 17:40:11 +01:00)
> Cluster Summary:
>   * Stack: corosync
>   * Current DC: virt-261 (version 2.1.5-2.el9-631339ca5aa) - MIXED-VERSION partition with quorum
>   * Last updated: Mon Dec  5 17:40:11 2022
>   * Last change:  Mon Dec  5 17:35:31 2022 by root via cibadmin on virt-261
>   * 2 nodes configured
>   * 3 resource instances configured
> 
> Node List:
>   * Node virt-262: pending
>   * Online: [ virt-261 ]
> 
> Full List of Resources:
>   * fence-virt-261	(stonith:fence_xvm):	 Stopped
>   * fence-virt-262	(stonith:fence_xvm):	 Stopped
>   * dummy	(ocf:pacemaker:Dummy):	 Stopping virt-261
> 
> Daemon Status:
>   corosync: active/disabled
>   pacemaker: inactive/disabled
>   pcsd: active/enabled
> 0

Result: The cluster shuted down cleanly, crm_mon doesn't fail.

Comment 13 errata-xmlrpc 2023-05-09 07:18:17 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 (pacemaker 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/RHBA-2023:2150


Note You need to log in before you can comment on or make changes to this bug.