Github user bhaisaab commented on the pull request:
https://github.com/apache/cloudstack/pull/768#issuecomment-138788442
@wilderrodrigues testing would require some usage data; and global settings
(search for quota in the UI) that are similar to usage ones, there is an enable
setting you set it to true and rest are self-explanatory. In the UI you goto
ui/plugins/plugins.js and enable the UI plugin and you can browse the quota
statement, credits etc via the UI. You start by deploying a usage/mgmt server
with some usage data that is not processed (the quota_calculated column will be
false or zero), you set a tariff with some effective date (you can set this
directly in the cloud_usage database's quota_tariff table with some values, the
quota types are same as usage types) and add some quota credits to an account
(say admin); the next time usage aggregation thread runs, quota calculation
thread would run next and basically tell you how much you've consumed, in case
a threshold is reached like quota is low or exhausted it would send out emails
and/or lock accounts based on global or account level setti
ngs etc.
In summary if someone wants to have a DigitalOcean kind of simple
credit/quota system, it is doable using this feature/plugin where quota or
amounts are credited (prepaid) and they reduce over time based on actual cloud
usage and a tariff. This feature does not support any credit card or payment
gateway; so admins (globally) or domain admins (for a specific domain) can add
credits to an account (on the flip side - to deduct, they can also add a
negative credit).
@abhinandanprateek can you add details on using the plugin on the admin
docs https://github.com/apache/cloudstack-docs-admin/tree/master/source and/or
on the FS as well.
---
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.
---