Bug 1329044 - console.dev-preview-int.openshift.com setting of memory limit confusing
Summary: console.dev-preview-int.openshift.com setting of memory limit confusing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OKD
Classification: Red Hat
Component: Management Console
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 02:29 UTC by Graham Dumpleton
Modified: 2016-05-19 20:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 20:12:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1094 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 3.2 security update 2016-05-20 00:12:27 UTC

Description Graham Dumpleton 2016-04-21 02:29:13 UTC
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.

Comment 1 Samuel Padgett 2016-04-22 15:45:09 UTC
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."

Comment 2 Samuel Padgett 2016-04-22 15:59:02 UTC
In the Online configuration, only memory limit should be showing up as well.

Comment 3 Samuel Padgett 2016-04-22 16:18:37 UTC
https://github.com/openshift/origin/pull/8604

Comment 4 Jessica Forrester 2016-04-25 13:37:36 UTC
Does this need to have a separate bug split off for the devpreview misconfiguration?

Comment 5 Samuel Padgett 2016-04-25 17:27:09 UTC
Opened https://bugzilla.redhat.com/show_bug.cgi?id=1330238

Comment 6 Yadan Pei 2016-05-04 07:28:43 UTC
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

Comment 8 Wei Sun 2016-05-10 01:28:14 UTC
According to #Comment6 ,verified this bug.

Comment 10 errata-xmlrpc 2016-05-19 20:12:55 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/RHSA-2016:1094


Note You need to log in before you can comment on or make changes to this bug.