Bug 786344 - Cloud quota not enforced for multi-instance deployment.
Summary: Cloud quota not enforced for multi-instance deployment.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: beta
Assignee: Shveta
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-01 06:53 UTC by Aziza Karol
Modified: 2012-05-15 22:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 22:25:59 UTC


Attachments (Terms of Use)
cloud quota (236.33 KB, image/png)
2012-02-01 06:54 UTC, Aziza Karol
no flags Details
quota for multi assembly deployment (225.56 KB, image/png)
2012-02-23 13:25 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0583 0 normal SHIPPED_LIVE new packages: aeolus-conductor 2012-05-15 22:31:59 UTC

Description Aziza Karol 2012-02-01 06:53:51 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
I enforced cloud quota such a way that only 1 instance can be launched out of 2 instances from muti-instance deployable.
so while launching the deployment, 1 instances should get launched and for the second one it should display "cloud quota reached".

But this does not happen.Both the instances are getting launched.it seems cloud  quota is not checked while launching multi instance deployment.

see attached screenshot.

Note:
cloud quota is checked for single instance deployment and displays message " cloud quota reached" which is correct.
  


Expected results:
Cloud quota should be enforced for multi-instance deployment.

Additional info:
rpm -qa | grep aeolus
aeolus-conductor-0.8.0-17.el6.noarch
rubygem-aeolus-cli-0.3.0-7.el6.noarch
aeolus-configure-2.5.0-11.el6.noarch
aeolus-conductor-daemons-0.8.0-17.el6.noarch
aeolus-all-0.8.0-17.el6.noarch
aeolus-conductor-doc-0.8.0-17.el6.noarch
rubygem-aeolus-image-0.3.0-7.el6.noarch

Comment 1 Aziza Karol 2012-02-01 06:54:19 UTC
Created attachment 558760 [details]
cloud quota

Comment 2 Angus Thomas 2012-02-02 13:50:29 UTC
The solution for this is to check the quota before launch, and if there isn't sufficient quota remaining to launch all of the instances defined in the deployable, not to launch the deployable at all.

Partially launching the deployable, by starting as many instances as the quota permits, would be likely to leave the user with a non-functional deployment.

Comment 3 Tzu-Mainn Chen 2012-02-02 16:55:58 UTC
Patch created; it prevents multi-instance deployables from launching at all if doing so would go over the pool/pool family quota:

https://fedorahosted.org/pipermail/aeolus-devel/2012-February/008593.html

Comment 4 Tzu-Mainn Chen 2012-02-03 15:02:57 UTC
Pushed to 1.0-staging:

commit 78cbf85d6de7bdfe5c26a417b580cdd9c829efb8
BZ 786344 added pre-launch validation for multi-instance deployments

Comment 5 Shveta 2012-02-23 13:25:41 UTC
Created attachment 565301 [details]
quota for multi assembly deployment

Before launching quota is checked for multi assembly deployment

rpm -qa|grep aeolus
aeolus-conductor-0.8.0-35.el6.noarch
rubygem-aeolus-cli-0.3.0-10.el6.noarch
aeolus-conductor-doc-0.8.0-35.el6.noarch
rubygem-aeolus-image-0.3.0-9.el6.noarch
aeolus-all-0.8.0-35.el6.noarch
aeolus-conductor-daemons-0.8.0-35.el6.noarch
aeolus-configure-2.5.0-15.el6.noarch

Comment 6 errata-xmlrpc 2012-05-15 22:25:59 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.

http://rhn.redhat.com/errata/RHEA-2012-0583.html


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