neutron/quantum
Yong Sheng Gong 46cac19852 Add quota per-tenant.
blueprint quantum-api-quotas

We implement it as an extension for linux bridge and ovs plugins.
We also expose the /quotas/Xx url to client to operate the quota.
We need admin role to show other tenant's quota, and to update quota data.
Any user can show its own tenant's quota. An DB table is used to save the
quota for each tenant.

To use it, we have in quantum.conf:
quota_driver = quantum.extensions._quotav2_driver.DbQuotaDriver

The default quotas for each tenant are defined in quantum.conf too.

In addition, modify extension framework to allow exposing a new resource and
its controler. The extension can check the environment, such as configuration
in global cfg.CONF to decide if it can be enabled.

Also, we can define enabled extensions for each plugin in extensions.py
New resources can be put into quota framework via quota_items in nova.conf

Change-Id: I54d6107fdb2808cdae1a40b501ed8c7f379dedee
2012-08-14 23:27:56 +08:00
..
agent Add device_owner attribute to port 2012-08-13 21:28:36 +00:00
api Add quota per-tenant. 2012-08-14 23:27:56 +08:00
common Add quota per-tenant. 2012-08-14 23:27:56 +08:00
db Implementation of second phase of provider extension. 2012-08-14 01:55:53 -04:00
extensions Add quota per-tenant. 2012-08-14 23:27:56 +08:00
openstack Update latest openstack files 2012-08-13 08:34:52 -04:00
plugins Implementation of second phase of provider extension. 2012-08-14 01:55:53 -04:00
rootwrap implement dhcp agent for quantum 2012-07-08 14:50:49 -04:00
server Implements the blueprint use-common-cfg for the quantum service. 2012-06-20 02:30:11 -04:00
tests Add quota per-tenant. 2012-08-14 23:27:56 +08:00
__init__.py Update codebase for HACKING compliance. 2012-05-01 11:46:24 -07:00
auth.py Make quantum pipeline configurable from quantum.conf. 2012-07-27 17:08:21 +09:00
context.py Introduce files from openstack common. 2012-07-17 06:41:14 +08:00
manager.py Ensures API v2 router does not load plugin twice 2012-07-14 09:52:10 -07:00
policy.py Adds the 'public network' concept to Quantum 2012-08-13 03:34:18 -07:00
quantum_plugin_base_v2.py API v2: mprove validation of post/put, rename few attributes 2012-06-13 10:41:36 -07:00
quota.py Add quota per-tenant. 2012-08-14 23:27:56 +08:00
service.py Remove paste configuration details to a seperate file. 2012-06-24 01:45:27 -04:00
version.py Open Folsom 2012-03-16 23:19:22 +01:00
wsgi.py Add quota per-tenant. 2012-08-14 23:27:56 +08:00