HomeClusterLabs Projects

Med: libpacemaker: Do not retry on ECONNREFUSED in tools.

Description

Med: libpacemaker: Do not retry on ECONNREFUSED in tools.

This is a regression introduced by e438946787. In that patch, what
we're trying to do is retry IPC connections between daemons. If a
daemon gets ECONNREFUSED when it initiates an IPC connection, the most
likely reason is that another daemon has been killed and is restarting
but is not yet ready to accept connections. Waiting and retrying
repeatedly is an acceptable way to deal with this.

However, if a command line tool gets ECONNREFUSED, it's more likely that
the problem is the cluster isn't running at all. In this case, waiting
and retrying just introduces a delay for a situation that will never be
resolved. Reverting just the part in pcmk_cluster_queries.c should fix
this problem without affecting any of the daemons - they don't call this
code.

Fixes RHEL-106594

Details

Provenance
clumensAuthored on Mon, Aug 4, 10:38 AM
Parents
rPb4342991dfcd: Merge pull request #3930 from clumens/3.0.1-final-prep
Branches
Unknown
Tags
Unknown