Bug 2001817

Summary: Failed to load RoleBindings list that will lead to ‘Role name’ is not able to be selected on Create RoleBinding page as well
Product: OpenShift Container Platform Reporter: Xiyun Zhao <xiyuzhao>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED ERRATA QA Contact: Xiyun Zhao <xiyuzhao>
Severity: high Docs Contact:
Priority: high    
Version: 4.9CC: aos-bugs, kdoberst, spadgett, yapei
Target Milestone: ---   
Target Release: 4.10.0   
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: 2022-03-10 16:07:48 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:
Bug Depends On:    
Bug Blocks: 2014145    
Attachments:
Description Flags
Failed to load role bindings infomation none

Description Xiyun Zhao 2021-09-07 09:14:47 UTC
Created attachment 1821095 [details]
Failed to load role bindings infomation

The page will keep loading when user trying to get RoleBindings information on Project details page -> RoleBindings tab or User Management -> RoleBindings page, this issue will also make user failed to select Role name on ‘Select role name’ dropdown list on Create RoleBinding page, the role name is not able to be selected

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-09-06-055314

How reproducible:
Always

Steps to Reproduce:
1. Login OCP as a normal user, create a project
2. Navigate to the Project details Page -> RoleBindings Tab or User Management -> RoleBindings page
3. Verify if role bindings information is able to show on the page
4. Select one role name on the dropdown list of Role name section
5. Verify if a user is able to select a role name

Actual results:
3. Page will keep loading without any information.
   Also, API requests will be got the error message ‘Failed to load resource: the server responded with a status of 403 (Forbidden)’ on the browse console (Check the error message on snapshot)
5. User is not able to select a role name


Expected results:
3. Role bindings information is able to load correctly
5. User is able to select a role name on the drop-down list

Comment 1 Samuel Padgett 2021-09-07 15:48:31 UTC
Likely a regression from https://github.com/openshift/console/pull/8829, which replaced the role bindings table.

Comment 4 Xiyun Zhao 2021-10-13 07:01:52 UTC
Failed to verified this bug on payload 4.10.0-0.nightly-2021-10-12-203611
@cajieh
Please help to double check if the code change is correct.
Now RoleBindings page will keep loading without any information.
A new attachment has been added for the error of WebSocket connection issue that catched on Broser's console

Comment 6 Cyril 2021-10-13 12:34:47 UTC
@xlyuzhao Again, I tested it in Server Version: 4.10.0-0.nightly-2021-10-13-001151,  and it looks good. Please see the attached: Let me know if you are still having issues verifying it.

Comment 9 Xiyun Zhao 2021-10-14 06:57:44 UTC
This bug has been fixed and verified on payload 4.10.0-0.nightly-2021-10-13-081040
@cajieh
And also please help to confirmed if this bug needs backport to OCP4.9, now the function of RoleBindings is not working on OCP4.9.

Comment 10 Xiyun Zhao 2021-10-14 07:37:09 UTC
This bug has been fixed and verified on payload 4.10.0-0.nightly-2021-10-13-081040

Verification Steps:
1. Login OCP as a normal user, create a project
2. Navigate to the Project details Page -> RoleBindings Tab or User Management -> RoleBindings page
3. Verify if role bindings information is able to show on the page
4. Select one role name on the dropdown list of Role name section
5. Verify if a user is able to select a role name
6. Create a new role binding for the project, verify if the new binding could be listed on the project role binding page

Actual results:
3. Role bindings information is able to load correctly
5. User is able to select a role name on the drop-down list
6. The new created binding information could be found on the RoleBinding list of the project correctly

Comment 14 errata-xmlrpc 2022-03-10 16:07:48 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.10.3 security 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.

https://access.redhat.com/errata/RHSA-2022:0056