HomeClusterLabs Projects

Fix: libcrmcommon: prevent external callers from triggering assertion when…
c9d194ac3724Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Fix: libcrmcommon: prevent external callers from triggering assertion when connecting to cluster

When sbd is connecting to cluster by calling crm_cluster_connect() ->
pcmk_cluster_connect() -> pcmkcorosync_connect() ->
pcmk
cpg_connect() -> pcmk__server_message_type()

, it triggers assertion:

error: log_assertion_as: pcmkserver_message_type: Triggered fatal
assertion at servers.c:165 : (server > 0) && (server <
PCMK
NELEM(server_info))

This fixes it by avoiding calling pcmkserver_message_type() in
pcmk
cpg_connect().

Details

Provenance
gao-yanAuthored on Feb 6 2025, 10:45 AM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.