3c584084c3
This patch introduces application logic support for tracking Neutron resource usage data, thus introducing a different way of enforcing quota limits, which now relies on records tracking resource usage for each tenant. When these records go "out-of-sync" with actual resource usage, the quota usage table entry is marked "dirty". And it will be resynchronized the next time a resource count is requested. Changes in resource utilization are detected using SQLAlchemy events. This patch however does not automatically enable resource usage tracking for any plugin. Plugins must explicitly declare for which resources they wish to enable tracking. To this aim, this patch provides the @tracked_resources decorator. As some operators might wish to not use resource usage tracking, this patch adds the track_quota_usage configuration option. If set to False, DB-level usage tracking will not be performed, and resources will be counted as before, ie: invoking a plugin method. Usage tracking is performed using a new resource type, TrackedResource, which can work side by side with CountableResource, the one Neutron used so far. To this aim a ResourceRegistry class has been introduced for registering and managing resources. Most of the resource management code previously embedded in the QuotaEngine class is being moved to ResourceRegistry as a part of this patch. Partially implements blueprint better-quota Change-Id: If461399900973a38d7b82e0b3ac54fc052f09529 |
||
---|---|---|
bin | ||
doc | ||
etc | ||
neutron | ||
rally-jobs | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pylintrc | ||
.testr.conf | ||
babel.cfg | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
openstack-common.conf | ||
README.rst | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
TESTING.rst | ||
tox.ini |
Welcome!
You have come across a cloud computing network fabric controller. It has identified itself as "Neutron." It aims to tame your (cloud) networking!
External Resources:
The homepage for Neutron is: http://launchpad.net/neutron. Use this site for asking for help, and filing bugs. Code is available on git.openstack.org at <http://git.openstack.org/cgit/openstack/neutron>.
The latest and most in-depth documentation on how to use Neutron is available at: <http://docs.openstack.org>. This includes:
- Neutron Administrator Guide
-
http://docs.openstack.org/admin-guide-cloud/content/ch_networking.html
- Neutron API Reference:
-
http://docs.openstack.org/api/openstack-network/2.0/content/
- Current Neutron developer documentation is available at:
For help on usage and hacking of Neutron, please send mail to <mailto:openstack-dev@lists.openstack.org>.
For information on how to contribute to Neutron, please see the contents of the CONTRIBUTING.rst file.