Skip to content

[crmsh-4.6] Dev: Prevent actions when offline nodes are unreachable #1818

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

Open
wants to merge 6 commits into
base: crmsh-4.6
Choose a base branch
from

Conversation

liangxin1300
Copy link
Collaborator

backport #1814

Before performing operations that require all nodes to be online or at
least SSH-reachable, such as:

- Joining a node to the cluster
- Removing a node from the cluster
- Configure SBD
- Setup SBD
- Setup QDevice
- Removing QDevice

Check for any offline nodes that are also unreachable.

If such nodes are found, the operation is blocked, and the user is
prompted to either bring the nodes online or forcibly remove them from
the cluster.

This enhances cluster safety by ensuring potentially problematic nodes
are handled explicitly before critical actions are taken.
@liangxin1300 liangxin1300 force-pushed the 20250606_remove_dead_node_crmsh46 branch 2 times, most recently from 90c409b to cb12970 Compare June 9, 2025 23:25
@liangxin1300 liangxin1300 force-pushed the 20250606_remove_dead_node_crmsh46 branch from cb12970 to 9d6c10d Compare June 10, 2025 01:43
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 87.14286% with 9 lines in your changes missing coverage. Please review.

Project coverage is 67.27%. Comparing base (5e29005) to head (48b5eea).

Files with missing lines Patch % Lines
crmsh/xmlutil.py 71.87% 9 Missing ⚠️
Additional details and impacted files
Flag Coverage Δ
integration 53.53% <84.28%> (+0.06%) ⬆️
unit 49.26% <70.00%> (+0.03%) ⬆️

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

Files with missing lines Coverage Δ
crmsh/bootstrap.py 84.81% <100.00%> (+0.09%) ⬆️
crmsh/completers.py 57.77% <100.00%> (ø)
crmsh/qdevice.py 98.76% <ø> (-0.01%) ⬇️
crmsh/utils.py 66.83% <100.00%> (+0.25%) ⬆️
crmsh/xmlutil.py 69.40% <71.87%> (+0.12%) ⬆️

☔ 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.

@liangxin1300 liangxin1300 marked this pull request as ready for review June 10, 2025 05:58
@liangxin1300 liangxin1300 marked this pull request as draft June 16, 2025 09:56
@liangxin1300 liangxin1300 marked this pull request as ready for review June 17, 2025 03:35
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