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 rolling restart on Linux #598

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

42esoulard
Copy link
Contributor

SUMMARY

Fixes the rolling restart on Linux in which the the consul service restart was happening too soon after the consul leave, which resulted in the playbook proceeding without the new election finalizing and a temporarily leaderless cluster.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • Rolling restart consul on Unix
ADDITIONAL INFORMATION
  • Since we are using a new variable consul_pid_file, it was replaced in all occurrences in the templates as well.

@bbaassssiiee
Copy link
Member

Thanks for your contribution! This repo is looking for maintainers...

If feasible, please rebase this PR on master to drop that merge commit. That way we have a linear commit history.

Copy link
Member

@bbaassssiiee bbaassssiiee left a comment

Choose a reason for hiding this comment

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

Please take a look at the output of the checks that ran and amend your PR.

tasks/leave_restart_consul.yml Outdated Show resolved Hide resolved
tasks/leave_restart_consul.yml Outdated Show resolved Hide resolved
@42esoulard 42esoulard force-pushed the master branch 3 times, most recently from 24175b7 to b48655c Compare June 4, 2024 15:07
@bbaassssiiee
Copy link
Member

There is still one linting issue:

yaml[indentation]: Wrong indentation: expected 4 but found 2
tasks/leave_restart_consul.yml:12
Error: Wrong indentation: expected 4 but found 2

WARNING  The following filters were mocked during the run: json_query
Read documentation for instructions on how to ignore specific rule violations.

                Rule Violation Summary                
 count tag               profile rule associated tags 
     1 yaml[indentation] basic   formatting, yaml     

@bbaassssiiee
Copy link
Member

Would you have time to also remove the directory ./molecule/centos-stream-8?
Centos 8 Stream End-of-life happened to happen 4 days ago (31 May 2024) https://endoflife.date/centos-stream

@42esoulard 42esoulard requested a review from bbaassssiiee June 6, 2024 12:09
Copy link
Member

@bbaassssiiee bbaassssiiee left a comment

Choose a reason for hiding this comment

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

Great work!

@bbaassssiiee bbaassssiiee merged commit 7c907e3 into ansible-collections:master Jun 6, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants