Bug 1281597

Summary: Automate | Quota exceeded, reason and log message values need formatting.
Product: Red Hat CloudForms Management Engine Reporter: Tina Fitzgerald <tfitzger>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED ERRATA QA Contact: Jiri Stefanisin <jistefan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: cpelland, gmccullo, jhardy, mfeifer, mkanoor, obarenbo, simaishi, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1289278 (view as bug list) Environment:
Last Closed: 2016-06-29 15:05:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1289278    

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