Bug 1288557 - Automate Method quota doesn't correctly handle sub 1GB storage requests
Summary: Automate Method quota doesn't correctly handle sub 1GB storage requests
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.6.0
Assignee: Tina Fitzgerald
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-04 14:54 UTC by Pete Savage
Modified: 2018-03-19 11:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-22 17:12:03 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pete Savage 2015-12-04 14:54:02 UTC
Description of problem: Automate Method doesn't correctly handle sub 1GB storage requests


Version-Release number of selected component (if applicable): 5.5.0.13


How reproducible: 100%


Steps to Reproduce:
1. Apply a limit of 1GB in the / Service / Provisioning / StateMachines / ServiceProvisionRequestQuotaVerification / instance
2. Run a provisioning with 400Mb storage * 3
3.

Actual results: All three are allowed


Expected results: The last one should be stopped


Additional info:
This is happening because of the conversion from Bytes to GB, In the conversion an integer is obtained, which is rounded. In the logs we see {:allocated=>1, :requested=>0, :limit=>1

Requested = 0 because it's rounded down in the conversion to GB. This effectively means that the user can use up more storage than they are allowed.

Comment 2 Tina Fitzgerald 2015-12-17 20:04:09 UTC
Hi Pete,

This issue is resolved in the new consolidated quota.

Is it okay to close this ticket since this code is deprecated?

Thanks,
Tina

Comment 3 Tina Fitzgerald 2015-12-22 17:12:03 UTC
This issue is resolved in the new consolidated quota.


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