Skip to content
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

[crmsh-4.6] Fix: ui_node: When utils.list_cluster_nodes return None, try to get ip list from corosync.conf #1378

Conversation

liangxin1300
Copy link
Collaborator

backport #1377

… ip list from corosync.conf

PR#1312 try to fix the issue that `crm cluster start --all` failed when
there is no CIB, but it also break what `list_cluster_nodes` returns,
which is widely used in crmsh and will cause many other unexpected issues.

This patch fix that regression by calling `utils.get_address_list_from_corosync_conf`
after `utils.list_cluster_nodes` return None when parsing node args.
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 52.85%. Comparing base (d4bf74c) to head (df8a7f1).

Files Patch % Lines
crmsh/utils.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           crmsh-4.6    #1378   +/-   ##
==========================================
  Coverage      52.85%   52.85%           
==========================================
  Files             79       79           
  Lines          23952    23955    +3     
==========================================
+ Hits           12659    12661    +2     
- Misses         11293    11294    +1     

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

@liangxin1300 liangxin1300 merged commit 3ed4d83 into ClusterLabs:crmsh-4.6 Apr 3, 2024
31 checks passed
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.

2 participants