Skip to content

allow teleport to start when some etcd nodes are unreachable#32438

Merged
fspmarshall merged 2 commits intomasterfrom
fspmarshall/fix-etcd-check
Sep 28, 2023
Merged

allow teleport to start when some etcd nodes are unreachable#32438
fspmarshall merged 2 commits intomasterfrom
fspmarshall/fix-etcd-check

Conversation

@fspmarshall
Copy link
Copy Markdown
Contributor

@fspmarshall fspmarshall commented Sep 23, 2023

Changes the etcd backend to start if any endpoint is reachable rather than only starting if all endpoints are reachable.

Fixes #23516

Comment thread lib/backend/etcdbk/etcd.go Outdated
Comment thread lib/backend/etcdbk/etcd.go Outdated
// wait for results
var err error
for range b.cfg.Nodes {
err = <-results
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we select over both results and ctx.Done() here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is blocking on an operation that is scoped to ctx, so I don't think it adds anything.

Comment thread lib/backend/etcdbk/etcd.go
@fspmarshall fspmarshall force-pushed the fspmarshall/fix-etcd-check branch 2 times, most recently from 638942c to 6c78046 Compare September 28, 2023 15:52
@fspmarshall fspmarshall marked this pull request as ready for review September 28, 2023 16:26
@fspmarshall fspmarshall force-pushed the fspmarshall/fix-etcd-check branch from 0d0c2c6 to 45c5d09 Compare September 28, 2023 16:38
@fspmarshall fspmarshall changed the title fix etcd check allow teleport to start when some etcd nodes are unreachable Sep 28, 2023
@fspmarshall fspmarshall requested a review from zmb3 September 28, 2023 16:46
@fspmarshall fspmarshall added this pull request to the merge queue Sep 28, 2023
Merged via the queue into master with commit e3b574a Sep 28, 2023
@fspmarshall fspmarshall deleted the fspmarshall/fix-etcd-check branch September 28, 2023 22:51
@public-teleport-github-review-bot
Copy link
Copy Markdown

@fspmarshall See the table below for backport results.

Branch Result
branch/v13 Create PR
branch/v14 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teleport not start if one node etcd is down

3 participants