-
Notifications
You must be signed in to change notification settings - Fork 590
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
[BUG] Worker node cordoned does not change the state of nodes in Longhorn #1287
Comments
Related to #1278 |
We can automatically disable the Longhorn node schedule when Kubernetes cordon the node. Since the user don't want any workload to be run on the node, it's highly likely they don't want any new replica to be created on the node as well. But just in case, we need to add a setting in the We can add a new node condition type UI needs to respond to the condition as well by showing the node as unschedulable. See #1278 (comment) for some information about cordon. |
@smallteeths could you help to clarify two questions?
Thanks, |
@boknowswiki For the setting part, you can refer to https://github.com/longhorn/longhorn-manager/blob/master/types/setting.go . The frontend will detect this automatically. |
@yasker , do you know from UI side, what's the API call to get the node status? I would like to use that do verify longhorn-manager replying the right status. |
Test replica scheduler: schedule replica based on
Also I have submitted a PR on the longhorn-test repo: @yasker , @meldafrawi , please let me know what do you think? Thanks, |
After discussed with @yasker , below is the order we check the "Schedulable" condition in the Node object:
@smallteeths the response for the "get node" API call is the same as we discussed last night, backend will return the final longhorn node status to UI.
@yasker , @smallteeths : Please let me know if there is any misunderstanding or unclarity. |
@boknowswiki LGTM. |
Pre-merged Checklist
|
Verified on latest master - 05/18/2020 - ui tag: Validation:
Tested scenario:
|
@meldafrawi , I will start to work on this test case today. Just make sure we don't duplicate our work. Please let me know if you have worked on this issue already. |
Validation: PASSED |
Describe the bug
Worker node cordoned does not change the state of nodes in Longhorn
To Reproduce
Expected behavior
The node should be marked with a state to reflect that it has been cordoned.
Environment:
The text was updated successfully, but these errors were encountered: