Red Hat Bugzilla – Bug 1413842
Unit drop-down choices are ignored in the web page to edit resource limits
Last modified: 2017-07-24 10:11 EDT
Description of problem: Unit drop-down choices are ignored in the web page to edit resource limits Version-Release number of selected component (if applicable): openshift v3.5.0.5+8f2840d How reproducible: Always Steps to Reproduce: 1. Create DC $ oc new-app openshift/hello-openshift 2. On DC page, click Actions --> Edit Resources Limits 3. Check unit choices CPU: Choose Request unit "cores" from drop-down list, set value 1; set Limit value 512 milicores Memory: Choose Request unit "GiB", set value 1; set Limit value 256 MiB Then click Save Actual results: 3. "Save" is not disabled. After save, check the actual resources limits: CPU: Request is set 1 milicores, i.e. "cores" is ignored! Memory: Request is set 1 MiB. In fact, except MiB, the remaining units MB/GB/GiB are ignored Expected results: 3. "Save" is disabled In page, CPU and Memory should both prompt error message "Limit can't be less than request ..." as before Additional info:
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/4c2a622eb39e1ab1f72f78cd9b385402fe6e08b6 Bug 1413842 - Use dot in ng-model path for compute resource units Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1413842
This has been merged into ocp and is in OCP v3.5.0.7 or newer.
Verified in OCP v3.5.0.7. Steps in comment 0 now can get the written expected result. And it can save correct values into DC YAML when page saves CPU/Memory with various units. Thanks!