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

The warning msg 'CPU and memory resource requests must be set' still shows up after deployment has resource requests set.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.20.0
    • 4.20
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When deployment has resource requests set, on 'Add HorizontalPodAutoscaler' page, the warning msg still shows up: "CPU and memory resource requests must be set if you want to use CPU and memory utilization. The HorizontalPodAutoscaler will not have CPU or memory metrics until resource requests are set."
          

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

      4.20.0-0.nightly-2025-05-19-144844 
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1. Create a deployment with resource requests set, click 'Add HorizontalPodAutoscaler' in action list.
          2.Check warning message on the page.
          3. Update the deployment to set resource limits and not requests, click 'Add HorizontalPodAutoscaler' in action list, check warning message on the page.
          

      Actual results:

      2. The message shows up: "CPU and memory resource requests must be set if you want to use CPU and memory utilization. The HorizontalPodAutoscaler will not have CPU or memory metrics until resource requests are set."
      3. The warning message disappears.
          

      Expected results:

      2. Should not show the warning message if deployment has already resource requests set.
      3. Should show warning message since resource requests are not set.
          

      Additional info:

      
          

              cajieh Cyril Ajieh
              rhn-support-yanpzhan Yanping Zhang
              None
              None
              Yanping Zhang Yanping Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: