Bug 2065513

Summary: Dev Perspective -> Project Dashboard shows Resource Quotas which are a bit misleading, and too many decimal places
Product: OpenShift Container Platform Reporter: Serena <sdoyle>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Xiyun Zhao <xiyuzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: aos-bugs, jhadvig, jonjacks, yapei
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:54:38 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: 2076989    
Attachments:
Description Flags
Screenshot of the project dashboard none

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