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

Fix: upgradeutil: reduce the timeout for getting sequence from remote node (bsc#1213797) #1222

Merged

Conversation

nicholasyang2022
Copy link
Collaborator

During a rolling upgrade, some of the cluster nodes may be unreachable.
In certain cases, it takes a long time to wait for a EHOSTUNREACH error.
Reducing the timeout helps crmsh to detect unreachable nodes faster and
to give up quickly.

@@ -137,8 +147,7 @@ def upgrade_if_needed():
return
nodes = crmsh.utils.list_cluster_nodes(no_reg=True)
if nodes is not None and len(nodes) > 1 \
and _is_upgrade_needed(nodes) \
and not crmsh.utils.check_passwordless_between_nodes(nodes):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Then crmsh.utils.check_passwordless_between_nodes is useless, should be removed

… node (bsc#1213797)

During a rolling upgrade, some of the cluster nodes may be unreachable.
In certain cases, it takes a long time to wait for a EHOSTUNREACH error.
Reducing the timeout helps crmsh to detect unreachable nodes faster and
to give up quickly.
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #1222 (2c11580) into master (a9d7f26) will increase coverage by 9.32%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master    #1222      +/-   ##
==========================================
+ Coverage   43.18%   52.50%   +9.32%     
==========================================
  Files          78       78              
  Lines       25012    24996      -16     
==========================================
+ Hits        10801    13125    +2324     
+ Misses      14211    11871    -2340     
Files Changed Coverage Δ
crmsh/prun/runner.py 65.74% <ø> (+1.85%) ⬆️
crmsh/utils.py 58.21% <ø> (+5.87%) ⬆️
crmsh/upgradeutil.py 84.09% <88.88%> (+3.13%) ⬆️
crmsh/prun/prun.py 92.75% <100.00%> (+4.34%) ⬆️

... and 22 files with indirect coverage changes

@liangxin1300 liangxin1300 merged commit a753fad into ClusterLabs:master Aug 2, 2023
29 checks passed
@nicholasyang2022 nicholasyang2022 deleted the upgradeutil_timeout branch August 7, 2023 07:22
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