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

[release-4.19] Runtime error page shows up when editing HPA with ContainerResource type from deployment action list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.19.z
    • 4.19, 4.20
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • In Progress
    • Bug Fix
    • Hide
      * Previously, a runtime error occurred when editing a HorizontalPodAutoscaler using the form view. With this release, the HorizontalPodAutoscaler form view renders as expected. (link:https://issues.redhat.com/browse/OCPBUGS-58377[OCPBUGS-58377])
      Show
      * Previously, a runtime error occurred when editing a HorizontalPodAutoscaler using the form view. With this release, the HorizontalPodAutoscaler form view renders as expected. (link: https://issues.redhat.com/browse/OCPBUGS-58377 [ OCPBUGS-58377 ])
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-58208. The following is the description of the original issue:

      Description of problem:

      After adding an HPA with ContainerResource type to a deployment, clicking 'Edit HorizontalPodAutoscaler', it will show runtime error in form edit mode on the page.
          

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

          4.20.0-0.nightly-2025-06-27-094229
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1.Create a HPA with ContainerResource type for a deployment.
              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  
          2.Go to the deployment page, click 'Edit HorizontalPodAutoscaler' item from action list, switch to form edit if it's yaml edit by default.
          3.
          

      Actual results:

      2. A runtime error page shows up:
      Something wrong happened
      e.resource is undefined
          

      Expected results:

      2. Should not show runtime error.
          

      Additional info:

      
          

              rhn-engineering-rhamilto Robb Hamilton
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              Yanping Zhang Yanping Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: