Bug 1969878

Summary: Webconsole does not show pod count of deploymentconfig with custom clusterrole
Product: OpenShift Container Platform Reporter: David Wilson <dawilson>
Component: Dev ConsoleAssignee: Sahil Budhwar <sbudhwar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: high Docs Contact:
Priority: high    
Version: 4.6.zCC: aos-bugs, dawilson, jokerman, nmukherj, pweil, sbudhwar, spadgett, spathak
Target Milestone: ---   
Target Release: 4.6.z   
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: 2021-06-29 06:26:19 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: 1970274    
Bug Blocks:    
Attachments:
Description Flags
Sample config file for the cluster role none

Description David Wilson 2021-06-09 11:41:19 UTC
Created attachment 1789549 [details]
Sample config file for the cluster role

Description of problem:

On OCP 4.6.25, the webconsole does not show the pod count of deploymentconfig when checked by a user with a custom clusterrole. This is not a permission issue as the user will be able to view all other details on deploymentconfig page but the graphical representation with a blue circle with pod count in the center will not appear. It just shows 3 bubbles progressing, but will not show the count.

Issue is observed on OCP 4.6.25 and 4.6.20, but the same clusterrole will work as expected in OCP 4.7.x


Version-Release number of selected component (if applicable): no


How reproducible: Always


Steps to Reproduce:

1. Create a custom clusterole (using the yaml attached) and assign a user to this cluster role.
2. Create a project and create a deployment config in the project.
3. Login through webconsole as the user and check the deploymentconfig in the project. 

Note: It is not a issue with the custom role yaml attached. The issue persists even when clusterrole is created using "oc create clusterrole <name> --resource=projects,namespaces,deploymentconfigs,replicationcontrollers,pods --verb=*"

Actual results:

Pod count not visible in the Administrator view


Expected results:

Pod count should be visible.


Additional info:

The issue is particular to the OCP version as it will show the expected results in OCP 4.7.9.

Comment 6 spathak@redhat.com 2021-06-23 21:02:12 UTC
Verified on build version: 4.6.0-0.nightly-2021-06-19-165544
Browser: Google Chrome 89

Comment 8 errata-xmlrpc 2021-06-29 06:26:19 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 (OpenShift Container Platform 4.6.36 bug fix 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/RHBA-2021:2498