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

Return success when registrying unhealthy node. #2239

Merged
merged 1 commit into from
Nov 7, 2014

Conversation

ddysher
Copy link
Contributor

@ddysher ddysher commented Nov 7, 2014

Fix #2192

@@ -61,7 +61,11 @@ func (rs *REST) Create(ctx api.Context, obj runtime.Object) (<-chan apiserver.RE
if err != nil {
return nil, err
}
minion, err := rs.registry.GetMinion(ctx, minion.Name)
minionName := minion.Name
minion, err := rs.registry.GetMinion(ctx, minionName)
Copy link
Member

Choose a reason for hiding this comment

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

Why does GetMinion error out on the minion being unhealthy? IMO unhealthy should be a bit in the minion's state. ...I realize this would be a large change now that I say it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, we should remove the healthy registry thingy and just have a controller doing health checks and setting a healthy bit, e.g., minion.State.Healthy = false. Then scheduler needs to pay attention to that...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrent. That's part of the larger change I wanna make :)

At initial stage, I plan to have apiserver filter out unhealthy node to keep the interface the same, i.e. scheduler doesn't have to take care of filtering out unhealthy node. Later, we can use something similar to a selector. So scheduler can select healthy node, admin can find and diagonse unhealthy node. We can probabaly add more states later.

@lavalamp
Copy link
Member

lavalamp commented Nov 7, 2014

I don't like this solution but I'm willing to take it if a real fix is in the works and will take a while.

@ddysher
Copy link
Contributor Author

ddysher commented Nov 7, 2014

Yes, this is a short term fix. See #2192 and #2164

@lavalamp
Copy link
Member

lavalamp commented Nov 7, 2014

LGTM

lavalamp added a commit that referenced this pull request Nov 7, 2014
Return success when registrying unhealthy node.
@lavalamp lavalamp merged commit 14d0dbd into kubernetes:master Nov 7, 2014
@ddysher ddysher deleted the node-creation-health branch January 10, 2015 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove health check for node registration
2 participants