Dev: corosync: Add corosync health check - #2149
Conversation
|
Output examples: |
9b8c15e to
fdd7e3e
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 Harness. 🚀 New features to boost your workflow:
|
fdd7e3e to
0432bcb
Compare
| prev = x.stdout | ||
| else: | ||
| result_description = StringIO() | ||
| result_description.write("Corosync configuration files are inconsistent across nodes:\n") |
There was a problem hiding this comment.
[FAIL] Validate Corosync Configuration File Consistency
Corosync configuration files are inconsistent across nodes:
2136532295a0985f1c4f595138df113453f9f750926099c5908c296793345da4 /etc/corosync/corosync.conf
14ace3030271e1b87b51030edbee561863e9cb2d98f567bc9959a3b10478ee2f /etc/corosync/corosync.conf
Recommended Action: Run "crm corosync push" to synchronize the configuration across cluster nodes.
- Include node names in consistency mismatch output, like:
node_name hash corosync_path - Suggest the user see the difference by running
crm corosync diffbefore runningpush; Or, here can show the diff output directly
|
|
|
|
|
|
51d9dfa to
2bb7412
Compare
Introduce the corosync health check under 'crm cluster health corosync'. - Add crmsh/corosync_healthcheck.py containing local configuration validity, cross-node consistency, quorum status, link status, and Node ID mapping validation. - Implement ui_cluster.py integration for the 'corosync' health component. - Write test/unittests/test_corosync_healthcheck.py and test_ui_cluster.py for comprehensive unit test coverage. - Update doc/crm.8.adoc with help information and documentation. - Add functional behavior tests in test/features/corosync_ui.feature.
Add check_deprecated_transport in health check to give a warning when corosync uses a deprecated non-knet transport (such as udp or udpu). Load LinkManager once in ui_cluster.py for corosync health checks and pass it to check_nodeid_to_nodename_mapping and check_deprecated_transport.
2bb7412 to
6e90050
Compare
Introduce the corosync health check under 'crm cluster health corosync'.
validity, cross-node consistency, quorum status, link status, and Node ID
mapping validation.
for comprehensive unit test coverage.