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

auth: fix cluster init deadlock #49638

Merged
merged 6 commits into from
Dec 9, 2024
Merged

auth: fix cluster init deadlock #49638

merged 6 commits into from
Dec 9, 2024

Conversation

dboslee
Copy link
Contributor

@dboslee dboslee commented Dec 2, 2024

If the bootstrapped resources are created but a failure occurs later in the cluster init process subsequent runs of the cluster initialization will fail due to the existing bootstrap resources.

changelog: Improved the cluster initialization process's ability to recovery from errors

If the bootstrapped resources are created but a failure occurs later
in the cluster init process subsequent runs of the cluster initialization
will fail due to the existing bootstrap resources.
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-49638.d3pp5qlev8mo18.amplifyapp.com

@dboslee dboslee changed the title weauth: fix cluster init deadlock auth: fix cluster init deadlock Dec 2, 2024
@dboslee dboslee marked this pull request as ready for review December 2, 2024 16:49
@zmb3
Copy link
Collaborator

zmb3 commented Dec 3, 2024

Is this something we can get some test coverage for?

lib/services/local/resource_test.go Outdated Show resolved Hide resolved
lib/services/local/resource_test.go Outdated Show resolved Hide resolved
@dboslee dboslee requested a review from bl-nero December 6, 2024 13:34
@dboslee dboslee added this pull request to the merge queue Dec 9, 2024
Merged via the queue into master with commit 02cadb4 Dec 9, 2024
40 of 41 checks passed
@dboslee dboslee deleted the david/fix-init-deadlock branch December 9, 2024 17:38
@public-teleport-github-review-bot

@dboslee See the table below for backport results.

Branch Result
branch/v16 Failed
branch/v17 Create PR

dboslee added a commit that referenced this pull request Dec 9, 2024
* auth: fix cluster init deadlock

If the bootstrapped resources are created but a failure occurs later
in the cluster init process subsequent runs of the cluster initialization
will fail due to the existing bootstrap resources.

* add test for new behavior

* add test for cluster init failures recovery

* Update lib/services/local/resource_test.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* reorder assertion values

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
dboslee added a commit that referenced this pull request Dec 10, 2024
* auth: fix cluster init deadlock

If the bootstrapped resources are created but a failure occurs later
in the cluster init process subsequent runs of the cluster initialization
will fail due to the existing bootstrap resources.

* add test for new behavior

* add test for cluster init failures recovery

* Update lib/services/local/resource_test.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* reorder assertion values

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
github-merge-queue bot pushed a commit that referenced this pull request Dec 12, 2024
* auth: fix cluster init deadlock

If the bootstrapped resources are created but a failure occurs later
in the cluster init process subsequent runs of the cluster initialization
will fail due to the existing bootstrap resources.

* add test for new behavior

* add test for cluster init failures recovery

* Update lib/services/local/resource_test.go



* reorder assertion values

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
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.

3 participants