Remove the deprecated config "quota_items"

It was deprecated at [1], and quota of resource will be registered
at initialization of APIRouter. So, no need to use the config now.

[1] https://review.openstack.org/#/c/181593

DocImpact: All references of 'quota_items' configuration option
and its description should be removed from the docs.

UpgradeImpact: Remove 'quota_items' configuration option from
neutron.conf file.

Change-Id: I0698772a49f51d7c65f1f4cf1ea7660cd07113a0
Closes-Bug: #1593772
This commit is contained in:
Hong Hui Xiao
2016-06-20 09:46:21 +00:00
parent b9c2f5444d
commit ff73054e86
4 changed files with 8 additions and 25 deletions

View File

@@ -34,7 +34,6 @@ LOG = logging.getLogger(__name__)
QUOTA_DB_MODULE = quota.QUOTA_DB_MODULE
QUOTA_DB_DRIVER = quota.QUOTA_DB_DRIVER
QUOTA_CONF_DRIVER = quota.QUOTA_CONF_DRIVER
default_quota_items = quota.default_quota_items
# Register the configuration options
@@ -280,15 +279,3 @@ class QuotaEngine(object):
QUOTAS = QuotaEngine.get_instance()
def register_resources_from_config():
# This operation is now deprecated. All the neutron core and extended
# resource for which quota limits are enforced explicitly register
# themselves with the quota engine.
for resource_item in (set(cfg.CONF.QUOTAS.quota_items) -
set(default_quota_items)):
resource_registry.register_resource_by_name(resource_item)
register_resources_from_config()