Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1685006

Summary: Should set correct empty state message for Resource Quotas
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas, yapei
Target Milestone: ---   
Target Release: 4.1.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: 2019-03-11 17:02:01 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:

Description Yadan Pei 2019-03-04 06:38:22 UTC
Description of problem:
When user don't have any projects, wrong message is shown on Resource Quotas page

Version-Release number of selected component (if applicable):
clusterversion: 4.0.0-0.nightly-2019-03-04-033148
console commit: d10fb8b637562015a0c704e72855e2d0c318783c

How reproducible:
Always

Steps to Reproduce:
1. user without any projects logins to cluster console
2. visit Administration -> Resource Quota page


Actual results:
2. Errors are shown:
resourcequotas is forbidden: User "ui1" cannot list resource "resourcequotas" in API group "" in the namespace "default"

Expected results:
2. Since user don't have any projects, we should print correct message "No Resource Quotas found"

Additional info:

Comment 1 Samuel Padgett 2019-03-04 14:14:13 UTC
https://github.com/openshift/console/pull/1250

Comment 2 Yadan Pei 2019-03-11 06:58:49 UTC
1. user without any projects logins to cluster console
2. visit Administration -> Resource Quota page, now it shows "No Resource Quotas Found"


Verified on 
$ oc image info registry.svc.ci.openshift.org/ocp/4.0-2019-03-10-103624@sha256:34de36b056aa48451c74d8812543e81c081d688cdc1feee38f68b84de2385559 | grep commit
             io.openshift.build.commit.id=e9e6e216b078e86604ae41fdd37d3da2a0c59d8b