GitHub user bhaisaab opened a pull request:
https://github.com/apache/cloudstack/pull/768
Quota master WIP (just to follow changes)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shapeblue/cloudstack quota-master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/768.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #768
----
commit dedb351f090c672b1832b81ca573ddd555829f04
Author: Abhinandan Prateek <[email protected]>
Date: 2015-08-13T06:12:30Z
CLOUDSTACK-8592: Implement Quota service
Quota service while allowing for scalability will make sure that the cloud
is
not exploited by attacks, careless use and program errors. To address this
problem, we propose to employ a quota-enforcement service that allows
resource
usage within certain bounds as defined by policies and available quotas for
various entities. Quota service extends the functionality of usage server
to
provide a measurement for the resources used by the accounts and domains
using a
common unit referred to as cloud currency in this document. It can be
configured
to ensure that your usage wonât exceed the budget allocated to
accounts/domain
in cloud currency. It will let user know how much of the cloud resources
he is
using. It will help the cloud admins, if they want, to ensure that a user
does
not go beyond his allocated quota. Per usage cycle if a account is found to
be
exceeding its quota then it is locked. Locking an account means that it
will not
be able to initiat e a new resource allocation request, whether it is more
storage or an additional ip. Needless to say quota service as well as any
action
on the account is configurable.
FS:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Quota+Service+-+FS
Signed-off-by: Rohit Yadav <[email protected]>
commit 04267f496bed98e82d2f3a1874bdb8daaf9d340f
Author: Rohit Yadav <[email protected]>
Date: 2015-08-13T06:15:21Z
CLOUDSTACK-8592: Implement UI Plugin for Quota Service
Signed-off-by: Rohit Yadav <[email protected]>
commit af28a8269fd9e80ff08193238e7c94d4a2321312
Author: Abhinandan Prateek <[email protected]>
Date: 2015-08-17T09:28:19Z
CLOUDSTACK-8592: Add changes from review
- added marvin test for quota plugin API
- removed unused commented code
- debug messages in debug enabled check
- checks for nulls, fixed access to member variables and feature
- changes based on PR comments
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---