Bug 1441089
Summary: | oc get/describe could not work when using 3.5 client to login 3.6 server | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Yan Du <yadu> | |
Component: | Master | Assignee: | Michal Fojtik <mfojtik> | |
Status: | CLOSED ERRATA | QA Contact: | Chuan Yu <chuyu> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 3.5.0 | CC: | aos-bugs, bingli, chuyu, jliggitt, jokerman, lizhou, lxia, mfojtik, mmccomas, xiaocwan, xxia | |
Target Milestone: | --- | |||
Target Release: | 3.5.z | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1463576 (view as bug list) | Environment: | ||
Last Closed: | 2017-12-07 07:10: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: | 1463576 |
Description
Yan Du
2017-04-11 08:21:17 UTC
oc 3.5 client must prefer the ungrouped APIs the fix for this is upstream in https://github.com/kubernetes/kubernetes/pull/42275 Fix was merged to 1.5 branch of origin, lets wait for next 1.5 build to verify. Guess this should be now available in latest 3.5 puddle. Verify failed with latest 3.5 puddle $ oc version oc v3.5.5.9 kubernetes v1.5.2+43a9be4 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://****** openshift v3.6.47 kubernetes v1.5.2+43a9be4 $ oc get route NAME KIND jenkins Route.v1.route.openshift.io $ oc describe route jenkins the provided version "route.openshift.io/v1" has no relevant versions: group route.openshift.io has not been registered no matches for route.openshift.io/, Kind=Route $ oc version oc v3.5.5.12 kubernetes v1.5.2+43a9be4 $ oc volume dc/mydb --add --type=emptyDir --mount-path=/opt1 --name=n1 the provided version "apps.openshift.io/v1" has no relevant versions: group apps.openshift.io has not been registered no matches for apps.openshift.io/, Kind=DeploymentConfig (In reply to Liang Xia from comment #6) > $ oc version > oc v3.5.5.12 > kubernetes v1.5.2+43a9be4 > > $ oc volume dc/mydb --add --type=emptyDir --mount-path=/opt1 --name=n1 > the provided version "apps.openshift.io/v1" has no relevant versions: group > apps.openshift.io has not been registered > no matches for apps.openshift.io/, Kind=DeploymentConfig What is the server version you are running this command against? Can you also make sure you remove the client cache? Also can you please provide output of this command with --loglevel=10 ? $ oc version oc v3.5.5.12 kubernetes v1.5.2+43a9be4 features: Basic-Auth GSSAPI Kerberos SPNEGO Server ****(dev-preview-int)**** openshift v3.6.63 kubernetes v1.6.1+5115d708d7 Liang, I cannot reproduce this locally: [@dev] .../openshift/origin # oc version oc v1.5.0+031cbe4 kubernetes v1.5.2+43a9be4 features: Basic-Auth Server https://192.168.64.3:8443 openshift v3.6.0-alpha.1+dcd60bd-397 kubernetes v1.6.1+5115d708d7 [@dev] .../openshift/origin # oc new-project test Now using project "test" on server "https://192.168.64.3:8443". You can add applications to this project with the 'new-app' command. For example, try: oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git to build a new example application in Ruby. [@dev] .../openshift/origin # oc run nginx --image=nginx deploymentconfig "nginx" created [@dev] .../openshift/origin # oc volume dc/nginx --add --type=emptyDir --mount-path=/opt1 --name=n1 deploymentconfig "nginx" updated Sorry, now I see the problem... https://github.com/openshift/ose/pull/696 somehow managed to not get merged... Merging this now, we should be able to test this with the latest 3.5 puddle. The issue was fixed with latest 3.5 puddle, oc edit/get/describe resources all successfully. $ oc version oc v3.5.5.28 kubernetes v1.5.2+43a9be4 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://master:8443 openshift v3.6.121 kubernetes v1.6.1+5115d708d7 Moving ON_QA. Tested bc, build, dc, pod, deployment, route, svc, hpa, job, secret, statefulset, configmap. This is still reproduced for BC (Only BC reproduces in above resources) # oc get bc NAME TYPE FROM LATEST ruby-sample-build Source Git 1 # oc describe bc ruby-hello-world Error from server (NotFound): buildconfigs.build.openshift.io "ruby-hello-world" not found # oc get bc/ruby-hello-world -o yaml Error from server (NotFound): buildconfigs.build.openshift.io "ruby-hello-world" not found Client: oc v3.5.5.30 kubernetes v1.5.2+43a9be4 Server: openshift v3.6.122 kubernetes v1.6.1+5115d708d7 oc get/describe bc/name works for me. You get "ruby-sample-build" but describe "ruby-hello-world". The name is typo. 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-2017:3389 |