Description of problem: When editing resource limits for a deployment, the messages and what is presented by the UI is confusing. Version-Release number of selected component (if applicable): console.dev-preview-int.openshift.com How reproducible: Reproducible. Steps to Reproduce: Deploy an application which sets a resource memory limit below the threshold of 150Mi, such as 128Mi. You will get an event error like: Error creating: pods "wagtail-redis-1-" is forbidden: [Minimum memory usage per Pod is 150Mi, but request is 134217728., Minimum memory usage per Container is 150Mi, but request is 128Mi.] Go to the deployment and select Actions->Set Resource Limits The UI will show: https://www.evernote.com/l/AHEI4IjX52BCObGWbbuiYNJWw4cP5KASKrI """ Request: 307 (but greyed out) Limit: 128 Can't be less than 150 MiB. Limit can't be less than request (307 MiB). Memory limit total for all containers is less than pod minimum (150 MiB). """ So shows two messages, one say can't be less than 150MiB and the other that can't be less that 307MiB. Change the Limit to 150 as know that is lower bound and messages change to: https://www.evernote.com/l/AHFaKmyFdFVCar4ZVfu3_S2PNF3_Gfg8Zwo """ Request: 307 (but greyed out) Limit: 150 Limit can't be less than request (307 MiB). """ This is confusing because I didn't set a memory Request value in the deployment configuration. When only having set Limit, that is all I sort of expect to need to update. I would expect that if it knew Request wasn't set, that it would implicitly match the value of Limit if it was valid. Instead I have to manually change Request to 150 as well to have it accept it. Expected results: Not be confusing. So is a usability issue.
I think this is just a bug that if limit is set, request will use the limit value rather than the default in the limit range. Derek, can you confirm that behavior? In that case, there should only be the one message, "Can't be less than 150 MiB."
In the Online configuration, only memory limit should be showing up as well.
https://github.com/openshift/origin/pull/8604
Does this need to have a separate bug split off for the devpreview misconfiguration?
Opened https://bugzilla.redhat.com/show_bug.cgi?id=1330238
Tested against hotfix puddle openshift v3.2.0.41 kubernetes v1.2.0-36-g4a3f9c5 etcd 2.2.5 When project limits is set, could specify CPU/Memory Limit( on create/fromimage page)to a value smaller than default Request(greyed out, placeholder), no errors prompted and could set successfully
According to #Comment6 ,verified this bug.
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/RHSA-2016:1094