Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: libpacemaker: crm_mon --one-shot can fail during pacemaker shutdown
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 may 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. Fixes CLBZ#5501 Signed-off-by: Reid Wahl <[email protected]>
- Loading branch information