ansible-collections / ansible-consul

:satellite: Ansible role for Hashicorp Consul clusters
https://galaxy.ansible.com/ansible-community/consul/
BSD 2-Clause "Simplified" License
450 stars 313 forks source link

Fix rolling restart on Linux #598

Closed 42esoulard closed 2 months ago

42esoulard commented 2 months ago
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
COMPONENT NAME
ADDITIONAL INFORMATION
bbaassssiiee commented 2 months ago

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.

bbaassssiiee commented 2 months ago

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 commented 2 months ago

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