Skip to content

Fix: Check for watchdog-based self-fencing device only if "fencing-watchdog-timeout" is enabled#4146

Open
gao-yan wants to merge 4 commits into
ClusterLabs:mainfrom
gao-yan:check-watchdog-fencing-device
Open

Fix: Check for watchdog-based self-fencing device only if "fencing-watchdog-timeout" is enabled#4146
gao-yan wants to merge 4 commits into
ClusterLabs:mainfrom
gao-yan:check-watchdog-fencing-device

Conversation

@gao-yan

@gao-yan gao-yan commented Jul 8, 2026

Copy link
Copy Markdown
Member

With 14e9b3e, stonith__watchdog_fencing_enabled_for_node_api() was
called only if "stonith-watchdog-timeout" was enabled (non-zero). But
with a4f2db3, the function is again always called even if the cluster
option is not enabled, so that it again keeps logging the confusing
notice "Cluster does not have watchdog fencing".

Besides, in liblrmd, stonith__watchdog_fencing_enabled_for_node_api()
has always been called for remote nodes even if "fencing-watchdog-timeout"
is disabled.

This PR fixes the issues by ensuring the watchdog-based self-fencing device
is only checked when "fencing-watchdog-timeout" is actually enabled.

gao-yan added 4 commits July 8, 2026 14:48
… "fencing-watchdog-timeout" is enabled

With 14e9b3e, stonith__watchdog_fencing_enabled_for_node_api() was
called only if "stonith-watchdog-timeout" was enabled (non-zero). But
with a4f2db3, the function is again always called even if the cluster
option is not enabled, so that it again keeps logging the confusing
notice "Cluster does not have watchdog fencing".

This commit fixes the regression by anyway parsing the value of the
cluster option first and avoiding calling
stonith__watchdog_fencing_enabled_for_node_api() if the cluster option
is not even enabled.
…es only if "fencing-watchdog-timeout" is enabled

Previously, stonith__watchdog_fencing_enabled_for_node_api() was always
called even when "fencing-watchdog-timeout" was disabled. This resulted
in a constant, confusing log notice: "Cluster does not have watchdog
fencing device".

This commit fixes it by ensuring the watchdog-based self-fencing device
for remote nodes is only checked when the cluster option is actually
enabled.
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