Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nrwahl2 clbz5501 alt #2905

Closed
wants to merge 2 commits into from
Closed

Conversation

nrwahl2
Copy link
Contributor

@nrwahl2 nrwahl2 commented Oct 6, 2022

Alternate version of #2902 based on suggestion in a3d8402#r989451634

We can still try to connect to the CIB.

Signed-off-by: Reid Wahl <[email protected]>
crm_mon --one-shot checks the pacemakerd state before trying to get a
CIB connection. If pacemakerd is shutting down, it returns ENOTCONN.
This can cause a resource agent that calls crm_mon (for example,
ocf:heartbeat:pgsql) to fail to stop during shutdown.

This seems to be a regression introduced by commit 3f342e3.
crm_mon.c:pacemakerd_status() returns pcmk_rc_ok if pacemakerd is
shutting down, since 49ebe4c and 46d6edd (fixes for CLBZ#5471). 3f342e3
refactored crm_mon --one-shot to use library functions, and
pcmk_status.c:pacemakerd_status() returns ENOTCONN if pacemakerd is
shutting down. As a result, we don't try to connect to the CIB.

Here we cause crm_mon --one-shot to return success if it successfully
got the pacemakerd status.

Fixes CLBZ#5501

Signed-off-by: Reid Wahl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant