Bug 1903192

Summary: Role name missing on create role binding form
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, cajieh, jokerman, pkreuser, yanpzhan
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Incorrect code Consequence: Unable to create role binding Fix: Yes Result: Working as expected.
Story Points: ---
Clone Of: Environment:
Version: 4.7.0-0.nightly-2020-11-30-172451 Cluster ID: 3503146a-c61e-4798-9194-785c94a999e8 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:82.0) Gecko/20100101 Firefox/82.0
Last Closed: 2021-02-24 15:37:08 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:
Bug Depends On:    
Bug Blocks: 1905788    
Description Flags
Missing role name none

Description Samuel Padgett 2020-12-01 15:42:28 UTC
Created attachment 1735257 [details]
Missing role name

Description of problem:

The role name is not displayed when creating a binding from a role. (See screenshot.)

How reproducible:


Steps to Reproduce:
1. Go to User Management -> Roles
2. Select cluster-admin
3. Click Actions -> Add Role Binding

Actual results:

The resulting form does not show the role name. There is a required Role Name field with no value and no input.

Expected results:

The form should show the role name as a read-only value.

Comment 1 Jakub Hadvig 2020-12-02 18:14:27 UTC
Was not able to reproduce in versions:
- 4.7.0-0.nightly-2020-11-30-172451
- console master branch from 2020-12-02

Tested both:
- Chrome 87.0.4280.67
- FF 81.0

On which version did you reproduced the issue?

Comment 2 Samuel Padgett 2020-12-02 20:30:26 UTC
See the environment field in the BZ for version and user agent (Firefox).

Comment 3 Yanping Zhang 2020-12-03 04:23:56 UTC
Could reproduce the bug on OCP 4.7 cluster with version 4.7.0-0.nightly-2020-11-30-172451. There is no input box for required "Role Name" field, and still could create rolebinding/clusterrolebinding, but the rolebinding has a wrong role ref "clusteradminundefined".

Comment 5 Peter Kreuser 2020-12-09 17:12:01 UTC
Just to note, I had seen this same issue and had begun opening a bugzilla when I then saw this one already existed. I saw this issue on version 4.7.0-0.nightly-2020-12-09-093341

Comment 6 Yanping Zhang 2020-12-14 08:04:30 UTC
Checked on 4.7 cluster with payload 4.7.0-0.nightly-2020-12-13-202314.
1. Go to User Management -> Roles
2. Select cluster-admin
3. Click Actions -> Add Role Binding, now the "Role Name" field is set as "cluster-admin", after click "Create", check in the rolebinding yaml, the role ref is correctly set as "cluster-admin".
The bug is fixed.

Comment 9 errata-xmlrpc 2021-02-24 15:37:08 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.