HomeClusterLabs Projects

Fix: controller: update node state correctly based on any existing node cache…

Description

Fix: controller: update node state correctly based on any existing node cache entry

Previously when controller was updating node state for a fencing result,
it'd search for any node cache entry purely by node name. But probably
an existing node cache entry didn't have an uname yet. Then
crm__get_peer_full() could not find it and would create yet another node
cache entry which didn't have the correct node state though.

In a bad situation, it could mistakenly assume a pending node that was
still a cluster member already fenced, for example SBD was not ready to
function on the peer node yet.

This commit resolves it by getting any existing node cache entry by node
uuid.

Details

Provenance
gao-yanAuthored on May 27 2023, 4:47 AM
Parents
rP9938a467e2de: Refactor: libcrmcluster: internal functions for getting a node cache entry by…
Branches
Unknown
Tags
Unknown