Bug 1281597 - Automate | Quota exceeded, reason and log message values need formatting.
Summary: Automate | Quota exceeded, reason and log message values need formatting.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: GA
: 5.6.0
Assignee: Tina Fitzgerald
QA Contact: Jiri Stefanisin
URL:
Whiteboard:
Depends On:
Blocks: 1289278
TreeView+ depends on / blocked
 
Reported: 2015-11-12 21:34 UTC by Tina Fitzgerald
Modified: 2016-06-29 15:05 UTC (History)
8 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1289278 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:05:53 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Tina Fitzgerald 2015-11-12 21:34:01 UTC
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:

Comment 3 Tina Fitzgerald 2015-11-17 22:56:35 UTC
Hi Satoe,

Sorry about that.

Here's the PR:
https://github.com/ManageIQ/manageiq/pull/5419

I don't have an MR.

Thanks,
Tina

Comment 5 Greg McCullough 2015-12-07 19:49:20 UTC
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

Comment 6 Jiri Stefanisin 2016-04-25 14:30:45 UTC
Verified on 5.6.0.4-beta2.3.20160421172650_719e256 with no issues.

Comment 8 errata-xmlrpc 2016-06-29 15:05:53 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/RHBA-2016:1348


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