Bug 1249772 - [RFE] Service :quota : Should be able to apply VM quota to service
Summary: [RFE] Service :quota : Should be able to apply VM quota to service
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.5.0
Assignee: Tina Fitzgerald
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-03 18:42 UTC by Shveta
Modified: 2015-11-11 20:51 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-15 14:00:57 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1248747 0 unspecified CLOSED service :quota : Provisioning quota for CPU , Memory and Storage doesn't work 2021-02-22 00:41:40 UTC

Internal Links: 1248747

Description Shveta 2015-08-03 18:42:16 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1. No way to provision a catalog item with more than one VM and gence can't apply VM quota to service .
2.  Tried two catalog items with one VM each and then created a catalog bundle with these two items . But VM quota still doesn't apply
3.

Actual results:


Expected results:


Additional info:
 5.4.1.0.20150717083323_6ed7e1c

Comment 3 Tina Fitzgerald 2015-08-31 14:11:21 UTC
Hi Shveta,

Do you have an environment setup to test this issue?

Thanks,
Tina

Comment 4 Shveta 2015-08-31 16:30:29 UTC
Hi Tina, 
The environment i used has expired now.
But the issues does not need any special set up .
Just provision two catalog items and add them to a catalog bundle .
Tag the catalog bundle with maximum VM quota = 1 . 
Provision the catalog bundle , it provision two VMs.

Comment 7 Tina Fitzgerald 2015-09-15 14:00:57 UTC
Quota happens during request processing. 
Since only the service request gets processed during service provisioning, the VM request is not processed and VM quota is not available.

Comment 8 CFME Bot 2015-10-14 21:43:06 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 10 CFME Bot 2015-10-16 20:36:13 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 12 CFME Bot 2015-10-16 20:36:58 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 13 CFME Bot 2015-10-20 14:27:15 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 15 CFME Bot 2015-10-20 14:28:00 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 16 CFME Bot 2015-10-20 14:28:35 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 17 CFME Bot 2015-10-21 14:02:32 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 18 CFME Bot 2015-10-21 16:01:22 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 19 CFME Bot 2015-10-23 16:43:45 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 20 CFME Bot 2015-10-23 16:46:54 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 21 CFME Bot 2015-10-23 19:50:09 UTC
Detected commit referencing this ticket while ticket status is CLOSED.

Comment 22 CFME Bot 2015-10-27 03:05:53 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/1250288dd7bc98b8975a4fa264f2fb12addadf66

commit 1250288dd7bc98b8975a4fa264f2fb12addadf66
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Mon Sep 14 11:35:52 2015 -0400
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Fri Oct 23 15:48:27 2015 -0400

    Consolidating quota code to help facilitate resolution for the
    following issues:
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1254211
     when quota exceeds Group Allocated Memory always shows "0.00GB"
     in last message of request details page (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1248747
     service :quota : Provisioning quota for CPU , Memory and Storage
    doesn't work (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1254882
    Provisioning quota for CPU/Mem/Storage doesn't work
    for cloud providers (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1126934
    [RFE] Quota enforcement based on used space (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1249772
    [RFE] Service :quota : Should be able to apply VM quota to service (edit)

 .../default.yaml                                   |   5 +-
 .../default.yaml                                   |   5 +-
 .../CommonMethods/Quota.class/__class__.yaml       | 173 ++++++++
 .../Quota.class/__methods__/validate_quota.rb      | 481 +++++++++++++++++++++
 .../Quota.class/__methods__/validate_quota.yaml    |  12 +
 .../CommonMethods/Quota.class/service_quota.yaml   |  26 ++
 .../System/CommonMethods/Quota.class/test.yaml     |  24 +
 .../System/CommonMethods/Quota.class/vm_quota.yaml |  26 ++
 8 files changed, 750 insertions(+), 2 deletions(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/__class__.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/__methods__/validate_quota.rb
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/__methods__/validate_quota.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/service_quota.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/test.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/vm_quota.yaml

Comment 23 CFME Bot 2015-10-27 03:48:00 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/1250288dd7bc98b8975a4fa264f2fb12addadf66

commit 1250288dd7bc98b8975a4fa264f2fb12addadf66
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Mon Sep 14 11:35:52 2015 -0400
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Fri Oct 23 15:48:27 2015 -0400

    Consolidating quota code to help facilitate resolution for the
    following issues:
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1254211
     when quota exceeds Group Allocated Memory always shows "0.00GB"
     in last message of request details page (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1248747
     service :quota : Provisioning quota for CPU , Memory and Storage
    doesn't work (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1254882
    Provisioning quota for CPU/Mem/Storage doesn't work
    for cloud providers (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1126934
    [RFE] Quota enforcement based on used space (edit)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1249772
    [RFE] Service :quota : Should be able to apply VM quota to service (edit)

 .../default.yaml                                   |   5 +-
 .../default.yaml                                   |   5 +-
 .../CommonMethods/Quota.class/__class__.yaml       | 173 ++++++++
 .../Quota.class/__methods__/validate_quota.rb      | 481 +++++++++++++++++++++
 .../Quota.class/__methods__/validate_quota.yaml    |  12 +
 .../CommonMethods/Quota.class/service_quota.yaml   |  26 ++
 .../System/CommonMethods/Quota.class/test.yaml     |  24 +
 .../System/CommonMethods/Quota.class/vm_quota.yaml |  26 ++
 8 files changed, 750 insertions(+), 2 deletions(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/__class__.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/__methods__/validate_quota.rb
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/__methods__/validate_quota.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/service_quota.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/test.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/Quota.class/vm_quota.yaml


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