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

Does draino double check the NodeCondition before proceeding to drain the node #50

Open
harighub opened this issue Sep 30, 2019 · 1 comment

Comments

@harighub
Copy link

We've condition where draino identified the permanent NodeCondition problem and it was scheduled to drain after 10 mins as configured:

2019-09-30T21:06:40.824Z	DEBUG	kubernetes/eventhandler.go:130	Cordoning	{"node": "10.0.16.126"}
2019-09-30T21:06:40.825Z	INFO	kubernetes/eventhandler.go:139	Cordoned	{"node": "10.0.16.126"}
2019-09-30T21:06:40.825Z	INFO	kubernetes/eventhandler.go:148	Scheduled drain	{"node": "10.0.16.126", "after": "2019-09-30T21:16:40.793Z"}
2019-09-30T21:16:40.793Z	DEBUG	kubernetes/eventhandler.go:152	Draining	{"node": "10.0.16.126"}
2019-09-30T21:16:40.794Z	INFO	kubernetes/eventhandler.go:161	Drained	{"node": "10.0.16.126"}

At the time of draining the system the node doesn't have permanent problem any more and NodeCondition was updated by NPD accordingly. I believe draino should double check whether still has the problem exists.

@harighub harighub changed the title Does draino double check the NodeCondition before processing to drain the pods Does draino double check the NodeCondition before proceeding to drain the node Sep 30, 2019
@negz
Copy link
Collaborator

negz commented Oct 10, 2019

I believe draino should double check whether still has the problem exists.

Definitely a good point - I don't think it does at the moment but I agree it should.

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

No branches or pull requests

2 participants