-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
m/n/c/consensus: fix startup after removing a cluster node
The consensus service was waiting for all initial peers to be DNS resolvable before starting etcd. However, the list of initial peers is never updated. If an etcd member is removed from the cluster, it is no longer resolvable, but may still be contained in initial peer lists. The consensus service then fails to start, as it is blocked forever waiting for the removed peer to become resolvable. The wait for resolvability was added in c1cb37c with this explanation: > It also makes the consensus service wait for DNS resolvability before > attempting to join an existing cluster, which makes etcd startup much > cleaner (as etcd will itself crash if it cannot immediately resolve > its ExistingPeers in startup). This does not appear to be needed anymore. I did not observe etcd crashes after removing the wait for resolvability. I extended the e2e test to test this scenario. After removing the consensus role, it also deletes the node and reboots the remaining nodes. I moved these tests to the ha_cold suite, because with encryption enabled, we currently cannot reboot a node in a 2-node cluster. Change-Id: If811c79ea127550fa9ca750014272fa885767c77 Reviewed-on: https://review.monogon.dev/c/monogon/+/3454 Tested-by: Jenkins CI Reviewed-by: Serge Bazanski <[email protected]>
- Loading branch information
Showing
5 changed files
with
74 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters