Bug 2065513 - Dev Perspective -> Project Dashboard shows Resource Quotas which are a bit misleading, and too many decimal places
Summary: Dev Perspective -> Project Dashboard shows Resource Quotas which are a bit mi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: Unspecified
OS: Mac OS
unspecified
medium
Target Milestone: ---
: 4.11.0
Assignee: Jon Jackson
QA Contact: Xiyun Zhao
URL:
Whiteboard:
Depends On:
Blocks: 2076989
TreeView+ depends on / blocked
 
Reported: 2022-03-18 03:03 UTC by Serena
Modified: 2022-08-10 10:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:54:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot of the project dashboard (618.69 KB, image/png)
2022-03-18 03:03 UTC, Serena
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11340 0 None open Bug 2065513: Fix ResourceQuota dashboard card and ACRQ donut label 2022-04-13 22:15:51 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:55:04 UTC

Description Serena 2022-03-18 03:03:04 UTC
Created attachment 1866553 [details]
Screenshot of the project dashboard

Description of problem:
On Sandbox, looking at my Project details in the Dev Perspective, now shows ACRQ.  I see a few issues here.

1 - it says I have No Resource Quotas, but then shows ACRQ "for-sdoyle-compute".  This seems misleading
2 - the units should only show one or two decimal places, but is showing 15.

Adding a screenshow.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jon Jackson 2022-04-08 15:47:36 UTC
@

Comment 4 Xiyun Zhao 2022-04-21 16:14:18 UTC
This bug has been verified on payload 4.11.0-0.nightly-2022-04-21-025500

Verification Step:
1. Login OCP as a normal user, and create a new project
2. Verify that "ResourceQuotas" and "AppliedClusterResourceQuotas" are separate sections on the "resource quota" card on Project details page
3. Login OCP as administrator, create ClusterResourceQuota and serveral resource (like pod, deployment, BuildConfig) for testing
   $ cat ClusterResourceQuota.yaml
apiVersion: quota.openshift.io/v1
kind: ClusterResourceQuota
metadata:
  name: test11340
spec:
  quota:
    hard:
      pods: 10
      secrets: 10
      requests.cpu: '1'
      requests.memory: 1Gi
      limits.cpu: '2'
      limits.memory: 2Gi
  selector:
    labels:
      matchLabels:
        'kubernetes.io/metadata.name': test11340
   $ cat BC.yaml
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
  name: test11340-1
spec:
  resources:
    limits:
      cpu: 7m
      memory: 128Mi
  source:
    git:
      ref: master
      uri: 'https://github.com/openshift/ruby-ex.git'
    type: Git
  strategy:
    type: Source
    sourceStrategy:
      from:
        kind: ImageStreamTag
        name: 'ruby:2.7'
        namespace: openshift
      env: []
  triggers:
    - type: ImageChange
      imageChange: {}
    - type: ConfigChange
  
4. Verify that the layout of  "AppliedClusterResourceQuotas" section and the Percentage on ACRQ donut label on Home -> Project -> Project Details page
5. Re-login OCP as normal user, go to Project page on developer perspective. Re-check Step 4 

Result:
2. "ResourceQuotas" and "AppliedClusterResourceQuotas" are separated into different sections on the "resource quota" card of the Project details page
4. No layout issue on resource quota card, Percentage units now only show one or two decimal places (Attached: verifcation_Result)

Comment 7 errata-xmlrpc 2022-08-10 10:54:38 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069


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