]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reservations support
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 12 Mar 2015 00:28:43 +0000 (17:28 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 17 Aug 2015 22:54:19 +0000 (15:54 -0700)
commit574b25b857419eed74237f61749cb76c4e612fb4
tree1272505b0c90977691e553b71f4dd5e9c3bb1c79
parentbf800f9c6cec7ca012b8f16ea93e4bb1453017a2
Reservations support

Add the concept of resource reservation in neutron.
Usage tracking logic is also updated to support reservations.
Reservations are not however available with the now deprecated
configuration-based quota driver.

The base API controller will now use reservations to perform
quota checks rather than counting resource usage and then
invoking the limit_check routine.

The limit_check routine however has not been removed and
depreacated as a part of this patch. In order to ensure all
quota drivers expose a consistent interface, a
make_reservation method has been added to the configuration
based driver as well. This method simply performs "old-style"
limit checks by counting resource usage and then invoking
limit_check.

DocImpact

Implements blueprint better-quotas.

Change-Id: Ifea07f461def564884af5b291c8a56655a4d818b
13 files changed:
neutron/api/v2/base.py
neutron/db/migration/alembic_migrations/versions/HEADS
neutron/db/migration/alembic_migrations/versions/liberty/expand/9859ac9c136_quota_reservations.py [new file with mode: 0644]
neutron/db/quota/api.py
neutron/db/quota/driver.py
neutron/db/quota/models.py
neutron/quota/__init__.py
neutron/quota/resource.py
neutron/quota/resource_registry.py
neutron/tests/unit/db/quota/test_api.py
neutron/tests/unit/db/quota/test_driver.py
neutron/tests/unit/extensions/test_quotasv2.py
neutron/tests/unit/quota/test_resource.py