Bug 1441755 - oc expose fails when run against older server
Summary: oc expose fails when run against older server
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: Xiaolin
URL:
Whiteboard:
: 1442012 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-12 15:45 UTC by Ben Parees
Modified: 2017-08-16 19:51 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-08-10 05:20:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Ben Parees 2017-04-12 15:45:54 UTC
Description of problem:
When using a v3.6 oc client (one that has api groups) against an older server (3.5), oc expose fails.



How reproducible:
always


Steps to Reproduce:
1. oc expose service someservice

Actual results:
Error from server (Forbidden): User "bparees" cannot create route.openshift.io.routes in project "bparees-parks"


Expected results:
route created (I have proper permissions to create routes)

Comment 1 Ben Parees 2017-04-12 15:47:36 UTC
(guessing the issue here is the client trying to use api groups instead of legacy resources)

Comment 2 Eric Paris 2017-04-17 18:00:57 UTC
*** Bug 1442012 has been marked as a duplicate of this bug. ***

Comment 3 Clayton Coleman 2017-04-17 18:22:05 UTC
We said we would do a reasonable job of having 3.6 talk to 3.5, so I think Michal does need to fix this.

Comment 4 Andy Goldstein 2017-04-17 19:14:37 UTC
This is happening because the types for the new api groups are being added to the scheme first, before the legacy types. I'm changing this so the legacy types are consistently added first.

Comment 5 Andy Goldstein 2017-04-17 20:40:47 UTC
https://github.com/openshift/origin/pull/13791

Comment 7 Xiaolin 2017-06-05 09:12:00 UTC
Verified on,

Client,
oc v3.6.94

Master,
openshift v3.5.5.23
kubernetes v1.5.2+43a9be4

Comment 9 errata-xmlrpc 2017-08-10 05:20:02 UTC
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/RHEA-2017:1716


Note You need to log in before you can comment on or make changes to this bug.