Bug 1278907 - Add project quotas without tenant quotas
Summary: Add project quotas without tenant quotas
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.6.0
Assignee: Libor Pichler
QA Contact: Pavol Kotvan
URL:
Whiteboard:
Depends On:
Blocks: 1289707
TreeView+ depends on / blocked
 
Reported: 2015-11-06 17:35 UTC by Sergio Ocón-Cárdenas
Modified: 2016-06-29 15:02 UTC (History)
3 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1289707 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:02:50 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 Sergio Ocón-Cárdenas 2015-11-06 17:35:59 UTC
Description of problem:
When you create a new project in a tenant and you try to assign a quota, it comñplaints with message "Error when saving tenant quota: Validation failed: Cpu allocated quota is over allocated, parent tenant does not have enough quota"

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


How reproducible:
Always

Steps to Reproduce:
1. Create a tenant
2. Create a project
3. Try to add a quota to the project

Actual results:
Error when saving tenant quota: Validation failed: Cpu allocated quota is over allocated, parent tenant does not have enough quota

Expected results:
If the parent does not have a quota assigned (inifinte), it should work. Default quotas should not be 0 but nil

Additional info:

Comment 3 CFME Bot 2015-11-24 14:00:28 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/373fb173b8979e020a10f585a2d923ce0323a3eb

commit 373fb173b8979e020a10f585a2d923ce0323a3eb
Author:     Libor Pichler <lpichler>
AuthorDate: Fri Nov 20 16:00:04 2015 +0100
Commit:     Libor Pichler <lpichler>
CommitDate: Mon Nov 23 09:52:29 2015 +0100

    Add spec for allowing to enter infinity tenant quota
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1278907

 spec/models/tenant_quota_spec.rb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comment 4 CFME Bot 2015-11-24 14:00:34 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/eb3564ae4748284b7a6aef20e008489342ba63fe

commit eb3564ae4748284b7a6aef20e008489342ba63fe
Author:     Libor Pichler <lpichler>
AuthorDate: Fri Nov 20 16:02:08 2015 +0100
Commit:     Libor Pichler <lpichler>
CommitDate: Mon Nov 23 09:52:29 2015 +0100

    Allow enter infinity tenant quota
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1278907
    It is allowed when parent tenant doesn't have defined related tenant quota

 app/models/tenant_quota.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comment 5 CFME Bot 2015-12-14 22:50:24 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=726df7a940266397c8c8905f52dbc4e99e4a5255

commit 726df7a940266397c8c8905f52dbc4e99e4a5255
Author:     Libor Pichler <lpichler>
AuthorDate: Fri Nov 20 16:00:04 2015 +0100
Commit:     Libor Pichler <lpichler>
CommitDate: Wed Nov 25 17:09:50 2015 +0100

    Add spec for allowing to enter infinity tenant quota
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1278907
    (cherry picked from commit 373fb173b8979e020a10f585a2d923ce0323a3eb)

 spec/models/tenant_quota_spec.rb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comment 6 CFME Bot 2015-12-14 22:50:28 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=2947a335e2aefd6c436231f4343d89e39e6f7d8c

commit 2947a335e2aefd6c436231f4343d89e39e6f7d8c
Author:     Libor Pichler <lpichler>
AuthorDate: Fri Nov 20 16:02:08 2015 +0100
Commit:     Libor Pichler <lpichler>
CommitDate: Wed Nov 25 17:10:46 2015 +0100

    Allow enter infinity tenant quota
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1278907
    It is allowed when parent tenant doesn't have defined related tenant quota
    
    (cherry picked from commit eb3564ae4748284b7a6aef20e008489342ba63fe)

 app/models/tenant_quota.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comment 9 errata-xmlrpc 2016-06-29 15:02:50 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.