When a quota item is denied, the log message and the reason text displayed in the denied request shows memory and storage values in bytes for used, requested, and quota limits. Added formatting for readability. Before: Request exceeds maximum allowed for the following: (cpu - Used: 1719 plus requested: 4 exceeds quota: 1) (memory - Used: 3424520 plus requested: 16106127360 exceeds quota: 2147483648) (storage - Used: 5018504 plus requested: 85899345920 exceeds quota: After: Request exceeds maximum allowed for the following: (cpu - Used: 1719 plus requested: 4 exceeds quota: 1) (memory - Used: 3.27 MB plus requested: 15.00 GB exceeds quota: 2.00 GB) (storage - Used: 4.79 MB plus requested: 80.00 GB exceeds quota:
Hi Satoe, Sorry about that. Here's the PR: https://github.com/ManageIQ/manageiq/pull/5419 I don't have an MR. Thanks, Tina
commit d338efab36eaf6934f87b1d125d74de39c68ad7d Author: Tina Fitzgerald <tfitzger> Date: Tue Nov 10 18:04:10 2015 -0500 Changed exceeded reason and log message unit of measure for storage and memory and changed spec test. BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1281597 Change spec test error messages. db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/QuotaMethods.class/__methods__/validate_quota.rb spec/automation/unit/method_validation/validate_quota_spec.rb
Verified on 5.6.0.4-beta2.3.20160421172650_719e256 with no issues.
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/RHBA-2016:1348