Bug 1970274 - Webconsole does not show pod count of deploymentconfig with custom clusterrole
Summary: Webconsole does not show pod count of deploymentconfig with custom clusterrole
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6.z
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.7.0
Assignee: Sahil Budhwar
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1969878
TreeView+ depends on / blocked
 
Reported: 2021-06-10 08:22 UTC by Sahil Budhwar
Modified: 2021-06-29 09:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-29 04:20:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
attachment (2.00 KB, text/plain)
2021-06-10 08:22 UTC, Sahil Budhwar
no flags Details
Webconsole shows pod count of deploymentconfig with custom clusterrole (88.06 KB, image/png)
2021-06-10 14:29 UTC, spathak@redhat.com
no flags Details
Webconsole shows pod count of deploymentconfig with custom clusterrole-2 (128.77 KB, image/png)
2021-06-10 14:30 UTC, spathak@redhat.com
no flags Details
Webconsole shows pod count of deploymentconfig in pod ring in details tab for custom role (130.24 KB, image/png)
2021-06-14 19:25 UTC, spathak@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:2502 0 None None None 2021-06-29 04:20:39 UTC

Description Sahil Budhwar 2021-06-10 08:22:04 UTC
Created attachment 1789775 [details]
attachment

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 2 spathak@redhat.com 2021-06-10 14:29:18 UTC
Created attachment 1789874 [details]
Webconsole shows pod count of deploymentconfig with custom clusterrole

Comment 3 spathak@redhat.com 2021-06-10 14:30:46 UTC
Created attachment 1789879 [details]
Webconsole shows pod count of deploymentconfig with custom clusterrole-2

Comment 4 spathak@redhat.com 2021-06-10 14:31:15 UTC
Verified on build version: 4.7.0-0.nightly-2021-06-07-203428
Browser: Google Chrome 89

Comment 7 spathak@redhat.com 2021-06-14 19:25:02 UTC
Created attachment 1791075 [details]
Webconsole shows pod count of deploymentconfig in pod ring in details tab for custom role

Comment 9 OpenShift Automated Release Tooling 2021-06-17 12:29:08 UTC
OpenShift engineering has decided to not ship Red Hat OpenShift Container Platform 4.7.17 due a regression https://bugzilla.redhat.com/show_bug.cgi?id=1973006. All the fixes which were part of 4.7.17 will be now part of 4.7.18 and planned to be available in candidate channel on June 23 2021 and in fast channel on June 28th.

Comment 13 errata-xmlrpc 2021-06-29 04:20:23 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.7.18 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:2502


Note You need to log in before you can comment on or make changes to this bug.