Bug 1455105

Summary: [paid][online-stg]The warning about no CPU limits should not displays after create HPA
Product: OpenShift Container Platform Reporter: shahan <hasha>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: XiaochuanWang <xiaocwan>
Severity: low Docs Contact:
Priority: medium    
Version: 3.5.0CC: aos-bugs, jokerman, mmccomas, smunilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In some cases, the web console replication controller and replica set pages incorrectly warned that a container did not have a CPU request set, preventing autoscaling from working. The web console was not correctly applying the limit range default for CPU request when detecting this warning. The web console has been fixed on these pages to correctly apply the limit range default, so there is no warning about CPU request when a horizontal pod autoscaler is enabled.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 05:25:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
warning none

Description shahan 2017-05-24 09:42:19 UTC
Created attachment 1281904 [details]
warning

Description of problem:
After creating HPA without setting resources limits manually, rc/dc etc page will have yellow icon which warns (overview page has no the yellow icon, though): This replication controller does not have any containers with a CPU limit set. Autoscaling will not work without a CPU limit. The CPU limit will be automatically calculated from the container memory.
In OCP it is normal, but in Online, this warning is not needed, because Online has ClusterResourceOverride configuration which will automatically enforce resource limit on rc/dc etc.

Version-Release number of selected component (if applicable):
OpenShift Master:v3.5.5.16 (online version 3.5.1.12)
Kubernetes Master:v1.5.2+43a9be4 

How reproducible:
Always

Steps to Reproduce:
1.Login in web console against the online env.
2.Create rc
  # oc run myrun-rc --image=yapei/hello-openshift --generator=run-controller/v1
3.Create HPA from the replication controller page
Add name,Min replicas(2),Max replicas(10),Target CPU Utilization
4. Check the replication controller page

Actual results:
4.There is text "Autoscaled min:2, max:10"  besides warning sign under deployment pod(see attachment)

Expected results:
4. should not display the warning sign

Additional info:
1.see same issues on other online clusters
2.There is no warning sign under pods-donut on overview page

Comment 2 openshift-github-bot 2017-06-05 12:55:52 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/8b08dba85b63e52440072641438c4cd297df3d91
Bug 1455105 - Correct quota / HPA donut warnings

Consistently show the same quota and HPA warnings everywhere we show the
pod donut. Fixes an issue where we would incorrectly show an HPA warning
when cluster resource overrides were enabled on the deployment page.
Also adds quota warnings to the donut on other pages, not just the overview.

Comment 4 shahan 2017-06-21 09:29:52 UTC
Tested this bug against online free-int cluster, it was fixed. 
version:
v3.6.116 (online version 3.5.0.20)

Comment 6 errata-xmlrpc 2017-08-10 05:25:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1716