Skip to content

Fix: sbd: Avoid negative value for the property 'stonith-watchdog-timeout' (bsc#1246622) #1865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

liangxin1300
Copy link
Collaborator

@liangxin1300 liangxin1300 commented Jul 17, 2025

Problem

Previously, when configuring diskless SBD with crmsh bootstrap, the option stonith-watchdog-timeout was set to -1 to prompt Pacemaker to automatically calculate the appropriate value.

However, Pacemaker now raises a warning when a negative value is used for timeout or duration options such as stonith-watchdog-timeout:

pacemaker-fenced[...]:  warning: '-1' is not a valid time duration: Negative
pacemaker-controld[...]:  warning: '-1' is not a valid time duration: Negative

Changes

Set the default value of stonith-watchdog-timeout to 2*SBD_WATCHDOG_TIMEOUT. The value of SBD_WATCHDOG_TIMEOUT is stored in /etc/sysconfig/sbd and can be kept consistent across all nodes using crmsh.

@liangxin1300 liangxin1300 force-pushed the 20250717_avoid_nagative_value_for_stonith_watchdog_timeout branch from ca6db07 to 2dc86dd Compare July 17, 2025 13:14
@liangxin1300 liangxin1300 requested a review from gao-yan July 17, 2025 13:14
@liangxin1300 liangxin1300 marked this pull request as ready for review July 17, 2025 13:17
Copy link
Member

@gao-yan gao-yan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, @liangxin1300 !

Copy link

codecov bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.64%. Comparing base (2a6fcf1) to head (99792aa).
Report is 6 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
integration 55.07% <0.00%> (-0.01%) ⬇️
unit 52.99% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
crmsh/sbd.py 87.26% <100.00%> (-0.03%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants