Bug 1865817

Summary: Values for cpu/memeory are empty in Metrics table on HPA detail page
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.6.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: 2020-10-27 16:23:12 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:
Attachments:
Description Flags
metrics-table none

Description Yanping Zhang 2020-08-04 09:26:56 UTC
Created attachment 1710296 [details]
metrics-table

Description of problem:
Create hpa in project, check on the hpa detail page, values for cpu/memeory  are empty in Metrics table on HPA detail page

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-08-03-143208

How reproducible:
Always

Steps to Reproduce:
1.Create app in project.
#oc new-app --as-deployment-config centos/ruby-22-centos7~https://github.com/sclorg/ruby-ex.git 
#oc expose svc ruby-ex
#oc set resources dc ruby-ex --limits=cpu=100m,memory=256Mi

2.Create hpa for the app.
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: test-hpa
spec:
  scaleTargetRef:
    apiVersion: apps.openshift.io/v1
    kind: DeploymentConfig
    name: ruby-ex
  minReplicas: 1
  maxReplicas: 5
  metrics:
  - type: Resource
    resource:
      name: cpu
      targetAverageUtilization: 1
  - type: Resource
    resource:
      name: memory
      targetAverageValue: 200Mi

3.Go to the hpa detail page. Check values in Metrics table.

Actual results:
3.There is no value for memory/cpu target field.

Expected results:
3.Should have value 200Mi for memory target field and 1% for cpu target field.

Additional info:

Comment 4 Yanping Zhang 2020-09-03 04:52:17 UTC
Tested on ocp 4.6 with payload 4.6.0-0.nightly-2020-09-02-165033
Checked on hpa detail page, there is value in metric table for memory/cpu target field.
The bug is fixed.

Comment 6 errata-xmlrpc 2020-10-27 16:23:12 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 GA Images), 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-2020:4196