| Summary: | Error messages for 'clusterrolebindings' change type to 'rolebindings' | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | zhaozhanqi <zzhao> |
| Component: | Networking | Assignee: | Jacob Tanenbaum <jtanenba> |
| Networking sub component: | router | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | low | ||
| Priority: | low | CC: | aos-bugs, sukulkar, tdawson |
| Version: | 3.2.0 | Keywords: | Reopened |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-18 12:39:40 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: | |
|
Description
zhaozhanqi
2016-04-05 10:11:49 UTC
oc get rolebinding is supported now: # oc get rolebinding NAME ROLE USERS GROUPS SERVICE ACCOUNTS SUBJECTS admin /admin ... yes, but oc get rolebinding cannot show the related info # oc get rolebinding |grep -i router-first-role #return nothing. ********************************************* # oc get clusterrolebindings |grep -i router-first-role router-first-role /system:router default/router The problem does not have to do with the router specifically but with the delegation of clusterrolebinding actions to rolebinding (under the hood). [root@localhost ~]# oc get clusterrolebindings doesnotexist Error from server: rolebinding "doesnotexist" not found [root@localhost ~]# oc delete clusterrolebindings doesnotexist Error from server: rolebinding "doesnotexist" not found and so forth This happens because when a user attempts to create/access clusterrolebinding objects objects get converted to rolebinding objects and when errors occur the hardcoded error returned from the rolebinding functions propagate up unchanged. Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/a1a5cdd9d5e7715a2c1eb825fc4a797ee767601d fix error messages for clusterrolebinding when accessing clusterrolebindings, on an error the system currently displays the type erroneously as rolebinding by adding the type to the struct makes it easy to return the correct type fixes bug 1323997 changelog - pass unversioned.GroupResource to create instead of a string - fix error messages for role/clusterrole as well - fix gofmt error - changed some types in the testing functions to the correct types This has been merged into ose and is in OSE v3.4.0.16 or newer. verified this bug on
# openshift version
openshift v3.4.0.37+3b76456-1
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0
oadm router first
info: password for stats user admin has been set to 18ezc65RbX
--> Creating router first ...
warning: serviceaccounts "router" already exists
clusterrolebinding "router-first-role" created
deploymentconfig "first" created
service "first" created
--> Success
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-2017:0066 |