It's been four years since neutron.db.quota_db was changed
to really use neutron.db.quota.driver under the covers, let's
remove it now that all Openstack consumers have been updated.
There are other occurences besides below, but they are only
doc changes so will not be broken.
Depends-on: https://review.openstack.org/639829 (neutron-lbaas)
Depends-on: https://review.openstack.org/639837 (tempest)
Change-Id: I948356c34e2bff5ca10fd1e3481762de0be62555
This patch simply renames quota modules introducing two
new packages:
1) neutron.quota
2) neutron.db.quota
This paves the way for adding more quota related modules.
Unit tests paths are changed accordingly, as well as references
to moved modules.
This patch hovewer preserves the ability of importing
neutron.db.quota_db in order to avoid breaking repositories which
use neutron as a requirement.
Change-Id: I946e87f1b2ebb3e80d64aecfe58aeff9f81896f3
Related-blueprint: better-quotas
This patch introduces database support for tracking Neutron
resource usage data. A single DB model class tracks usage
info for all neutron resources.
The patch also provides a simple API for managing resource
usage info, as well as unit tests providing coverage for
this API.
This patch also makes a slight change to the ContextBase
class, adding the ability to explicitly set is_advsvc at
initialization time. While this probably makes no difference
for practical use of the context class, it simplifies
development of DB-only unit tests.
Related-Blueprint: better-quotas
Change-Id: I62100551b89103a21555dcc45e84195c05e89800
This change simply changes the Quota model class to obtain
the tenant_id from the mixin class. As the attribute in the
mixin is identical to that in the model there is no need for
a migration.
This patch also removes a reference to quota classes in the
docstring, as Neutron does not implement those. It is good
to be careful when copying and paste code.
Change-Id: Idab15d5ef2ddd2b830a7dcde46990506064535f7
Closes-Bug: #1445169
This patch lets the quota engine verify whether it manages a resource
for which a limit is being checked.
So far this check has been delegated to the drivers. This is
conceptually wrong and also lead to code duplication.
Unit tests and some docstrings are also fixed accordingly as a
part of this patch.
Closes-Bug: #1430519
Related to blueprint better-quotas
Change-Id: If1467881f13e30afa53a23b904f8eae5c7264834
Simply removes the vim header line and the empty line
following it (when present) for files in the api, db, and
extenssions base directories. In one single _init_ file in
this patchset, all comment lines are removed.
Change-Id: I81b7168dc2ad74b8c30a87e50a531e157851499e
Partial-Bug: 1229324
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.
implements blueprint: remove-use-of-quantum
Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19