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

Fix osadm manage-node --schedulable #10971

Merged
merged 1 commit into from
Sep 29, 2016

Conversation

marun
Copy link
Contributor

@marun marun commented Sep 17, 2016

Fixes #10970.

cc: @pravisankar

@marun
Copy link
Contributor Author

marun commented Sep 17, 2016

[test]

@marun marun force-pushed the fix-node-schedulable branch 2 times, most recently from 9e1bf2c to 148de23 Compare September 17, 2016 02:57
marun referenced this pull request in marun/origin Sep 17, 2016
@@ -71,7 +71,8 @@ status:
' | oc create -f -"

os::cmd::expect_success_and_text 'oadm manage-node --selector= --schedulable=true' 'Ready'
os::cmd::expect_success_and_not_text 'oadm manage-node --selector= --schedulable=true' 'Sched'
os::cmd::expect_success_and_not_text 'oadm manage-node --selector= --schedulable=true' 'SchedulingDisabled'
os::cmd::expect_success_and_text 'oadm manage-node --selector= --schedulable=false' 'SchedulingDisabled'
Copy link
Contributor

Choose a reason for hiding this comment

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

Add another "get" test after each of these that validates that the node is actually schedulable. I.e. expect_succes_and_text 'oc get node ... --template="{{ .status.conditions ... }}"

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have a node in test/cmd - that tests needs to live in e2e or extended

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smarterclayton There is already a kubelet unit test that validates the translation from Unschedulable: true to SchedulingDisabled. I don't think there is value in duplicating that coverage here.

Reference: https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/pkg/kubectl/resource_printer_test.go#L619

@pravisankar
Copy link

LGTM

@marun
Copy link
Contributor Author

marun commented Sep 21, 2016

@smarterclayton merge please

@smarterclayton
Copy link
Contributor

You can create a node using the API in test-cmd pretty easily. The point is to test the command, not the kubelet.

@liggitt
Copy link
Contributor

liggitt commented Sep 21, 2016

Be careful about nodes in test-cmd. I feel like at one point it made the scheduler crazy to have "Ready" nodes that weren't actually ready

@marun
Copy link
Contributor Author

marun commented Sep 23, 2016

@smarterclayton afaict this fix is adequately tested. If extra testing of this functional area is desired, please consider filing an issue and having it implemented separately rather than delaying the unblocking of the networking tests any further.

@dcbw
Copy link
Contributor

dcbw commented Sep 23, 2016

flakes are #11008 and #9548 [test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 754dbd9

@dcbw
Copy link
Contributor

dcbw commented Sep 23, 2016

#11008 is duped to #11016; noting 11016 to get more visibility on the issue

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9206/)

@dcbw
Copy link
Contributor

dcbw commented Sep 23, 2016

LGTM [merge]

@mfojtik
Copy link
Contributor

mfojtik commented Sep 26, 2016

[merge]

@danwinship
Copy link
Contributor

#11016 again, [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 754dbd9

@openshift-bot
Copy link
Contributor

openshift-bot commented Sep 28, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9456/) (Image: devenv-rhel7_5096)

@openshift-bot openshift-bot merged commit c52f629 into openshift:master Sep 29, 2016
@marun marun deleted the fix-node-schedulable branch November 29, 2016 19:21
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.

9 participants