Bug 1330050
Summary: | Output info is not correct when debug a pod with invalid node name. | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Yanping Zhang <yanpzhan> | |
Component: | oc | Assignee: | Fabiano Franz <ffranz> | |
Status: | CLOSED ERRATA | QA Contact: | Wei Sun <wsun> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 3.2.0 | CC: | aos-bugs, ffranz, jokerman, mmccomas, tdawson, trankin | |
Target Milestone: | --- | Keywords: | Regression | |
Target Release: | 3.2.1 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1345805 (view as bug list) | Environment: | ||
Last Closed: | 2016-05-12 16:36:26 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1345805 |
Description
Yanping Zhang
2016-04-25 10:52:44 UTC
We don't validate --node-name client-side, we just set pod.Spec.NodeName and rely on the API validation instead. It seems that until v1.1.4 the pod creation would error out right away with "nodes <node name> not found" in case of an invalid pod.Spec.NodeName, and starting with v1.1.5 the pod gets scheduled and errors later, async to the API call. So likely related to a rebase prior to that version. Probably related: https://github.com/kubernetes/kubernetes/commit/496fc3c7eda5c21d67c17fc2dcf9d3ec847f3c26#diff-2f2856ed0f6487c4906b43ac137117c3L40. Andy, can you confirm? We are going to do client-side validation. Tested on devenv-fedora_4053 $ oc version oc v1.3.0-alpha.0-167-g4589987 kubernetes v1.3.0-alpha.1-331-g0522e63 $ oc debug -n prozyp dc/testpod --node-name=invalidnode -- /bin/env Debugging with pod/testpod-debug, original command: <image entrypoint> Waiting for pod to start ... Removing debug pod ... error: unable to create the debug pod "testpod-debug" on node "invalidnode" Now the output has been updated with correct info, so move the bug to Verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2016:1064 |