pgsql agent fails at cluster shutdown due to crm_mon

Solution Verified - Updated -

Issue

  • The resource-agent pgsql agent fails at cluster shutdown due to crm_mon.
  • The following message is logged:

    Nov 11 01:01:56 node42 pgsql(PgsqlRes)[31930]: WARNING: Retrying(remain 15985). "crm_mon -1 --output-as=xml" failed. rc=102. stdout="<pacemaker-result api-version="2.22" request="crm_mon -1 --output-as=xml">#012  <status code="102" message="Not connected">#012    <errors>#012      <
    Nov 11 01:01:57 node42 corosync[11555]:   [CFG   ] Node 5 was shut down by sysadmin
    Nov 11 01:01:57 node42 pgsql(PgsqlRes)[31930]: WARNING: Retrying(remain 15984). "crm_mon -1 --output-as=xml" failed. rc=102. stdout="<pacemaker-result api-version="2.22" request="crm_mon -1 --output-as=xml">#012  <status code="102" message="Not connected">#012    <errors>#012      <error>Could not connect to pacemakerd: Connection refused</error>#012      <error>crm_mon: Connection to cluster failed: Connection refused</error>#012    </errors>#012  </status>#012</pacemaker-result>".
    

Environment

  • Red Hat Enterprise Linux Server 8, 9 (with the High Availability Add On)
  • RHEL 8.7: pacemaker-2.1.4-5.el8
  • RHEL 9.1: pacemaker-2.1.4-5.el9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content