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

Deployment cannot be scaled up/down from GUI when an HPA is associated with it.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.16.0
    • 4.12, 4.15
    • Management Console
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, a deployment could not be scaled up or down when a `HorizontalPodAutoscaler` is present. With this update, when a deployment with an `HorizontalPodAutoscaler` is scaled down to `zero`, an *Enable Autoscale* button is displayed so you can enable pod autoscaling. (link:https://issues.redhat.com/browse/OCPBUGS-22405[*OCPBUGS-22405*])
      Show
      * Previously, a deployment could not be scaled up or down when a `HorizontalPodAutoscaler` is present. With this update, when a deployment with an `HorizontalPodAutoscaler` is scaled down to `zero`, an *Enable Autoscale* button is displayed so you can enable pod autoscaling. (link: https://issues.redhat.com/browse/OCPBUGS-22405 [* OCPBUGS-22405 *])
    • Bug Fix
    • Done

      Description of problem:

      Deployment cannot be scaled up/down when an HPA is associated with it.

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

      4.12

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create a test deployment
      $ oc new-app httpd
      2. Create a HPA for the deployment
      $ oc autoscale deployment/httpd --min 1 --max 10 --cpu-percent 10 
      3. Scale down the deployment via script or manually to 0 replicas.
      $ oc scale deployment/httpd --replicas=0
      4. The HPA shows below status that it cannot scale up until the deployment is scaled up.
      ~~~
           - type: ScalingActive
            status: 'False'
            lastTransitionTime: '2023-10-24T10:00:01Z'
            reason: ScalingDisabled
            message: scaling is disabled since the replica count of the target is zero
      ~~~  
      5. Since the scale up/down is disabled, the users will not be able to scale up the deployment from GUI. The only option is to do it from CLI.

      Actual results:

      The scale up/down arrows are disabled and users are unable to start the deployment.

      Expected results:

      The scale up/down arrows should be enabled or another option that can help to scale up the deployment.

      Additional info:

       

            sgoodwin_redhat Steve goodwin
            rhn-support-pkhilare Pawan Khilare
            Xiyun Zhao Xiyun Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: