-
Notifications
You must be signed in to change notification settings - Fork 95
Check and fix SBD-related timeout values #1932
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
base: master
Are you sure you want to change the base?
Check and fix SBD-related timeout values #1932
Conversation
1c3416b to
f8b0f1b
Compare
ba3a1bc to
fe7983c
Compare
fe7983c to
febb236
Compare
crmsh/ui_cluster.py
Outdated
| case 'sbd': | ||
| fix = parsed_args.fix | ||
| try: | ||
| warn = False if fix else True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| warn = False if fix else True | |
| warn = not fix |
crmsh/sbd.py
Outdated
| from . import xmlutil | ||
| from . import watchdog | ||
| from . import parallax | ||
| from . import healthcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not make sense to add a dependency to module healtcheck just for exception FixFailure. It is just a ordinary subclass of Exception without any extra features.
crmsh/sbd.py
Outdated
| utils.cluster_run_cmd(f"{test_dir_cmd} && {rm_dir_cmd} && {reload_cmd} || exit 0") | ||
| class SBDTimeoutChecker(SBDTimeout): | ||
|
|
||
| def __init__(self, warn=True, fix=False, filter_str: str = "", from_bootstrap=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def __init__(self, warn=True, fix=False, filter_str: str = "", from_bootstrap=False): | |
| def __init__(self, warn=True, fix=False, check_category: str = "", from_bootstrap=False): |
0ee1753 to
eb66873
Compare
eb66873 to
d78e638
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2736d67 to
8baf58e
Compare
|
to check and fix SBD-related timeouts values. The check cases include: SBD-related configurations' consistency across cluster nodes, SBD disk metadata, SBD_WATCHDOG_TIMEOUT, SBD_DELAY_START, sbd systemd start timeout, stonith-watchdog-timeout property, and stonith-timeout property. Remove serval methods with the same logic from sbd.SBDTimeout class
8baf58e to
d3589bb
Compare
when calculating expected msgwait and stonith-watchdog-timeout
d3589bb to
c762336
Compare
This PR introduces the
sbdoption for the 'crm cluster health' command, and adds the classsbd.SBDTimeoutCheckerto provide methods for checking and fixing SBD-related timeout values.Check SBD-related configurations' consistency
Check and fix SBD disk metadata
Check and fix SBD_DELAY_START
Check and fix SBD systemd start timeout
Check and fix stonith-timeout
Check and fix stonith-watchdog-timeout
Other cases
corosync token timeout increase