Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1442012

Summary: `oc run` can't work when using 3.6 client with 3.5 server
Product: OpenShift Container Platform Reporter: zhou ying <yinzhou>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED DUPLICATE QA Contact: Xingxing Xia <xxia>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, eparis, jokerman, mmccomas, wmeng, wzheng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-17 18:00:57 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 zhou ying 2017-04-13 10:13:57 UTC
Description of problem:
When using 3.6 client with 3.5 server, the `oc run` command can't work with error:
 User "xxxx" cannot create apps.openshift.io.deploymentconfigs in project 


Version-Release number of selected component (if applicable):
oc v3.6.26
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO

openshift v3.5.5.5
kubernetes v1.5.2+43a9be4

How reproducible:
always

Steps to Reproduce:
1. Use 3.6 client login 3.5 server and create project;
2. Use 3.6 client command to create DC:
   `oc run testdc --image=openshift/hello-openshift`

Actual results:
2. Met error:
User "xxxx" cannot create apps.openshift.io.deploymentconfigs in project

With --loglevel=6, oc run outputs:
I0413 17:57:21.889643   22196 round_trippers.go:318] POST https://xxxx:443/apis/apps.openshift.io/v1/namespaces/testzy1/deploymentconfigs 403 Forbidden in 322 milliseconds
I0413 17:57:21.890282   22196 helpers.go:203] server response object: [{
  "metadata": {},
  "status": "Failure",
  "message": "User \"zhouying7780\" cannot create apps.openshift.io.deploymentconfigs in project \"testzy1\"",
  "reason": "Forbidden",
  "details": {
    "group": "apps.openshift.io",
    "kind": "deploymentconfigs"
  },
  "code": 403
}]
F0413 17:57:21.890324   22196 helpers.go:116] Error from server (Forbidden): User "zhouying7780" cannot create apps.openshift.io.deploymentconfigs in project "testzy1"

Expected results:
2. Should create deploymentconfig succeed.

Additional info:
The command works well with 3.6 server.

Comment 1 Wenjing Zheng 2017-04-14 07:01:30 UTC
Below command also cannot success if use oc 3.6 to connect 3.5 server:
oc expose svc frontend:
Error from server (Forbidden): User "wzheng" cannot create route.openshift.io.routes in project "wzheng1"