neutron/neutron/conf
Rodolfo Alonso Hernandez e135a8221d New Quota driver ``DbQuotaNoLockDriver``
This new quota driver, ``DbQuotaNoLockDriver``, does not create a lock
per (resource, project_id) but retrieves the instant (resource,
project_id) usage and the current (resource, project_id) reservations.
If the requested number of resources fit the available quota, a new
``Reservation`` register is created with the amount of units requested.

All those operations are done inside a DB transaction context. That
means the amount of resources and reservations is guaranteed inside
this transaction (depending on the DB backend isolation level defined)
and the new reservation created will not clash with other DB transation.
That will guarantee the number of resources and instant reservations
never exceed the quota limits defined for this (resource, project_id).

NOTES:
- This change tries to be as unobtrusive as possible. The new driver
  uses the same ``DbQuotaDriver`` dabatase tables (except for
  ``QuotaUsage``) and the same Quota engine API, located in
  ``neutron.quota``. However, the Quota engine resources implements some
  particular API actions like "dirty", that are not used in the new
  driver.
- The Pecan Quota enforcement hooks,
  ``neutron.pecan_wgsi.hooks.quota_enforcement``, execute actions like
  "resync", "mark_resources_dirty" or "set_resources_dirty", that has
  no meaning in the new driver.
- The isolation between the Quota engine and the Pecan hook, and the
  driver itself is not clearly defined. A refactor of the Quota engine,
  Quota service, Quota drivers and a common API between the driver and
  the engine is needed.
- If ``DbQuotaDriver`` is deprecated, ``CountableResource`` and
  ``TrackedResource`` will be joined in a single class. This resource
  class will have a count method (countable) or a hard dependency on a
  database table (tracked resource). The only difference will be the
  "count" method implementation.

Closes-Bug: #1926787

Change-Id: I4f98c6fcd781459fd7150aff426d19c7fdfa98c1
2021-05-20 07:55:59 +00:00
..
agent Clean up the deprecated options for Xen API support 2021-04-23 22:28:36 +09:00
db Bump pylint version to support python 3.8 2020-08-06 16:00:30 +02:00
extensions Conntrack Helper - Plugin 2019-08-29 10:41:04 +02:00
plugins Merge "ovn-migration: Introduce migrate mode to DB sync tool" 2021-04-26 14:22:47 +00:00
policies Merge "Add missing "system" scope in some of the new API policies" 2021-04-28 21:26:47 +00:00
services Deprecate [designate] admin_* parameters 2021-05-11 12:08:42 +09:00
__init__.py Refactoring config options for quota 2016-05-11 09:15:38 -05:00
common.py Config option to disable the DHCP functions 2021-03-05 14:35:29 +08:00
profiling.py Add profiler decorator to Neutron 2019-10-31 10:05:01 -05:00
quota.py New Quota driver ``DbQuotaNoLockDriver`` 2021-05-20 07:55:59 +00:00
service.py Merge "Add "rpc_response_max_timeout" config variable in OVS agent" 2019-03-01 12:09:18 +00:00
wsgi.py Refactoring config options for wsgi opts 2016-08-03 19:49:58 +00:00