Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-56699

ContainerResource metric data for HPAs isn't visible in the Details page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 4.20.0
    • 4.16, 4.17, 4.18.0, 4.19.0, 4.20.0
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When a Horizontal Pod Autoscaler (HPA) is created with a ContainerResource metric, the data for the ContainerResource metric isn't visible in the Details page of the HPA. 

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

      Tested in 4.18.13 but will affect later versions as well.

      How reproducible:

      Always

      Steps to Reproduce:

          1. Create a new project with the command oc new-project test.
          2. Create a test HPA resource with a ContainerResource metric. Here's an example command to do this. 
              oc apply -f - <<EOF 
              apiVersion: autoscaling/v2
              kind: HorizontalPodAutoscaler
              metadata:
                name: test-hpa
                namespace: test
              spec:
                maxReplicas: 1
                metrics:
                - type: ContainerResource
                  containerResource:
                    name: cpu
                    target:
                      type: Utilization
                      averageUtilization: 10
                    container: test-container
                scaleTargetRef:
                  apiVersion: apps/v1
                  kind: Deployment
                  name: test-deploy
              EOF    
          3. Login to the web console as a cluster-admin and go to 
             Administrator > Workloads > HorizontalPodAutoscalers > <HPA Name> and check under the "Metrics" section.      

      Actual results:

      In the Metrics table, the ContainerResource metric is shown as "ContainerResource (unrecognized type)" in the Type field with no information about the Current or Target usage.     

      Expected results:

      There is relevant information about the ContainerResource metric in the Type, Current, and Target fields of the Metrics table.     

      Additional info:

          

              rhn-support-cuthayak Clark Uthayakumar
              rhn-support-cuthayak Clark Uthayakumar
              None
              None
              Yanping Zhang Yanping Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: