Skip to content

Fix kubelet proxy configuration race condition #1318

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

Merged
merged 4 commits into from
Sep 2, 2019

Conversation

kke
Copy link
Contributor

@kke kke commented May 13, 2019

Trying to fix the race condition in Configure kubelet proxy

First round: alter the way initial node labels are set

@kke kke added the bug Something isn't working label May 13, 2019
@kke kke changed the title (wip) Fix kubelet proxy configuration race condition [cluster-e2e] Fix kubelet proxy configuration race condition May 13, 2019
@kke
Copy link
Contributor Author

kke commented May 13, 2019

Specs and e2e pass, can't confirm if this fixes the

ERROR: Pharos::PhaseManager::Error : Phase failed on 2 hosts:
- 667-do-charming-tapir:
RuntimeError: can't add a new key into hash during iteration
- 667-do-first-wildcat:
RuntimeError: can't add a new key into hash during iteration

@@ -15,7 +15,7 @@ class Host < Pharos::Configuration::Struct
attribute :private_address, Pharos::Types::Strict::String.optional.default(nil)
attribute :private_interface, Pharos::Types::Strict::String.optional.default(nil)
attribute :role, Pharos::Types::Strict::String
attribute :labels, Pharos::Types::Strict::Hash
attribute :labels, Pharos::Types::Strict::Hash.default(proc { {} })
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the minimal fix? Other changes are just extra?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that setting node labels in def labels is the problem. The changes to initialize make the host set the node role labels and taints already upon initialization.

@kke
Copy link
Contributor Author

kke commented Aug 14, 2019

Looks like merge broke it.

@jakolehm jakolehm added this to the 2.5.0 milestone Sep 2, 2019
@jakolehm jakolehm merged commit afc21bd into master Sep 2, 2019
@jakolehm jakolehm deleted the fix/configure_kubelet_proxy_race branch September 2, 2019 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants