Skip to content

Fix osadm manage-node --schedulable - #10971

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
marun:fix-node-schedulable
Sep 29, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
marun:fix-node-schedulable

Conversation

@marun

@marun marun commented Sep 17, 2016

Copy link
Copy Markdown
Contributor

Fixes #10970.

cc: @pravisankar

@marun

marun commented Sep 17, 2016

Copy link
Copy Markdown
Contributor Author

[test]

Comment thread test/cmd/admin.sh
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

LGTM

@marun

marun commented Sep 21, 2016

Copy link
Copy Markdown
Contributor Author

@smarterclayton merge please

@smarterclayton

Copy link
Copy Markdown
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

liggitt commented Sep 21, 2016 •

Copy link
Copy Markdown
Contributor

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 marun mentioned this pull request Sep 23, 2016
@marun

marun commented Sep 23, 2016

Copy link
Copy Markdown
Contributor Author

@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

dcbw commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

flakes are #11008 and #9548 [test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 754dbd9

@dcbw

dcbw commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

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

@openshift-bot

Copy link
Copy Markdown
Contributor

@dcbw

dcbw commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

LGTM [merge]

@mfojtik

mfojtik commented Sep 26, 2016

Copy link
Copy Markdown
Contributor

[merge]

@danwinship

Copy link
Copy Markdown
Contributor

#11016 again, [merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 754dbd9

@openshift-bot

openshift-bot commented Sep 28, 2016 •

Copy link
Copy Markdown
Contributor

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