Bug 1529447
| Summary: | Normal user `oc explain resource` shows "Error from server (Forbidden): unknown" | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Xingxing Xia <xxia> |
| Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Xingxing Xia <xxia> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.9.0 | CC: | aos-bugs, ccoleman, deads, jliggitt, jokerman, mmccomas, smunilla, xxia |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | 3.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | v3.9.0-0.24.0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-13 20:22:20 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
Xingxing Xia
2017-12-28 06:56:25 UTC
We recently switched from using the /swaggerapi endpoint, to `/swagger-2.0.0...` as part of a switch to use the OpenAPI schema. Permissions to access the openapi endpoint were fixed upstream in https://github.com/kubernetes/kubernetes/pull/53359 and were brought into Origin in the 1.9.0 beta.1 rebase https://github.com/openshift/origin/pull/17576 I believe you might be hitting a cluster that has not been updated with this patch yet. What I do find strange is that you are getting an "unknown" message back from the server rather than the expected 'User "..." cannot "get" on "/swagger-2.0.0.pb-v1"'. Please let me know if you are still hitting this error against the latest (or fairly recent) version of the server. Lowering severity for the time being. @Jordan I'm wondering if it'd be worth picking https://github.com/kubernetes/kubernetes/pull/53359 into previous Origin releases? opened https://github.com/openshift/origin/pull/18105 for 3.8 Checked with latest oc/OCP v3.9.0-0.19.0, now normal user can get explanation via like `oc explain pod`, `oc explain svc.spec`. However, some cannot work: $ oc explain bc error: Couldn't find resource for "/v1, Kind=BuildConfig" $ oc explain dc error: Couldn't find resource for "/v1, Kind=DeploymentConfig" Currently taking a look at an open github issue to address this: https://github.com/openshift/origin/issues/17766 PR is not in latest available v3.9.0-0.23.0. Waiting for next available OCP puddle to verify it. Will also verify with '--api-version' *** Bug 1536845 has been marked as a duplicate of this bug. *** Checked in v3.9.0-0.24.0, now all below commands can return explanation successfully oc explain bc oc explain job --api-version=batch/v1 oc explain is.spec --api-version=image.openshift.io/v1 |