-
Notifications
You must be signed in to change notification settings - Fork 662
OCPBUGS-63339: HPA Form View in RHOCP Web Console Incorrectly Requires Both CPU and … #15626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPBUGS-63339: HPA Form View in RHOCP Web Console Incorrectly Requires Both CPU and … #15626
Conversation
|
@cajieh: This pull request references Jira Issue OCPBUGS-63339, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@cajieh Checked on cluster launched against the pr. On HPA create/edit form view page, user could set '0' for CPU Utilization。
|
|
|
@cajieh: This pull request references Jira Issue OCPBUGS-63339. The bug has been updated to no longer refer to the pull request using the external bug tracker. All external bug links have been closed. The bug has been moved to the NEW state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@cajieh: This pull request references Jira Issue OCPBUGS-63339, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
d09a758 to
35a092d
Compare
f98cf90 to
7ef01fc
Compare
@yanpzhan Thank you for verifying quickly. However, |
7ef01fc to
d7d60e1
Compare
d7d60e1 to
948b438
Compare
| name: cpu | ||
| target: | ||
| averageUtilization: 50 | ||
| averageUtilization: 80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure why the default value for the UI was different from the API default. Changed it to be consistent with the API default.
|
@cajieh when create HPA on form view, leave CPU Utilization and Memory Utilization fields empty, click create. The hpa will only have default value 80 for CPU Utilization, so if there is not a requirement for Memory Utilization default value? |
@yanpzhan Correct. This change removes the default value for the Memory Utilization field. The intention is to align with the |
|
/test okd-scos-e2e-aws-ovn |
|
/jira refresh |
|
@cajieh: This pull request references Jira Issue OCPBUGS-63339, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
The update LGTM now. |
|
@yanpzhan: This PR has been marked as verified by In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cajieh, vikram-raj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@cajieh: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@cajieh: Jira Issue Verification Checks: Jira Issue OCPBUGS-63339 Jira Issue OCPBUGS-63339 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/cherry-pick release-4.20 |
|
@cajieh: new pull request created: #15673 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |


The Alignment Between HPA Form Behavior and the API
A breakdown of the key points regarding the Horizontal Pod Autoscaler (HPA) form's behavior and how it aligns with API:
API Default Behavior:
If the
spec.metricsarray in an HPA manifest is empty ([]) or omitted, API automatically defaults to scaling based on 80% average CPU utilization.API Validation Rule for Utilization:
If you specify a metric with
target.typeutilization (like CPU or Memory), theaverageUtilizationvalue "must be greater than 0". A value of 0 is invalid and will be rejected by the Kubernetes API server.UI Form Behavior:
Empty Input Field: If a user leaves the CPU or Memory utilization field empty, the UI omits that specific metric from the generated HPA manifest/request.
Input Value = '0': If a user enters 0 in the CPU or Memory utilization field, the UI sends this value to the API server. The API server then rejects the request with the "must be greater than 0" error, which is the current and expected behavior.
Input Value > 0: The UI includes the specified metric values in the HPA manifest/request, which are then sent successfully to the API.