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:
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.
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