Bug 1515878
| Summary: | Short names discovery broken on v3.7.9 server | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Fabiano Franz <ffranz> |
| Component: | oc | Assignee: | Fabiano Franz <ffranz> |
| Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.7.0 | CC: | abhgupta, aos-bugs, ccoleman, deads, jliggitt, jokerman, mfojtik, mmccomas, yasun |
| Target Milestone: | --- | ||
| Target Release: | 3.7.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Categories like 'all' were moved to the server but some of them were only moved after the upstream cut for the rebase, causing an incomplete list of resources.
Consequence: Some resources could not be found in 'oc get all' and some other 'oc get' calls.
Fix: the remaining upstream commits were picked to include all needed resources.
Result: 'oc get all' and the other problematic calls were fixed.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-01-23 17:58:09 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: | |||
|
Description
Fabiano Franz
2017-11-21 14:26:39 UTC
Adding Clayton which could add more info. Could you help trying to reproduce this one? Clayton noticed it first but I was yet unable to reproduce. 'oc' used is always the latest version. Adding some more folks since it's not yet clear if this is client-side or related to discovery and the shortNames field. I built openshift/origin:release-3.7 and hit discovery. Got back
```json
{
"name": "statefulsets",
"singularName": "",
"namespaced": true,
"kind": "StatefulSet",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
],
"shortNames": [
"sts"
],
"categories": [
"all"
]
}
```
It looks correct to me.
https://github.com/openshift/origin/issues/17411 master against 3.7 server, svc not in all David, do you see it for services? I built openshift/origin:release-3.7 and see shortNames and categories for statefulsets, but not for services for example. Likely others. BTW the same issue happens with `kubectl` master against openshift/origin:release-3.7 server. There was a bug for services. I fixed it in kube, might have been 3.8 though. (In reply to Fabiano Franz from comment #2) > Could you help trying to reproduce this one? Clayton noticed it first but I > was yet unable to reproduce. 'oc' used is always the latest version. Tried 3.7.9 oc against free-stg (3.7.9), I didn't reproduce it. But I found possible cause: try oc version several times, server version is unstable, seems some masters on free-stg were not restarted after upgrade[1]: $ oc version oc v3.7.9 ... Server https://api.free-stg.openshift.com:443 openshift v3.6.173.0.49 kubernetes v1.6.1+5115d708d7 $ oc version oc v3.7.9 ... Server https://api.free-stg.openshift.com:443 openshift v3.7.9 kubernetes v1.7.6+a08f5eeb62 Fabiano, it is possible cause, because I checked 3.7 oc against 3.6 OCP can reproduce 'the server doesn't have a resource type "sts"' [1] Adding Abhishek, default Assignee of Website, in CC' list for confirming to help check and restart them, thanks > There was a bug for services. I fixed it in kube, might have been 3.8 though. David, picking the fix for services into 3.7 in https://github.com/openshift/ose/pull/931. Will be in the next 3.7. 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/RHBA-2018:0113 |