diff options
author | Kevin_Zheng <zhengzhenyu@huawei.com> | 2017-09-23 09:35:37 +0800 |
---|---|---|
committer | Kevin_Zheng <zhengzhenyu@huawei.com> | 2017-09-23 14:39:43 +0800 |
commit | f2d01c3c6a14aabd86b811501771c0bb2860a74b (patch) | |
tree | ad42a4996c016afa4db827aabd70cee2d259fa69 /nova/quota.py | |
parent | fa8d2294c9e17ff7a7dc89c900b493dd05c6e5b1 (diff) | |
download | nova-f2d01c3c6a14aabd86b811501771c0bb2860a74b.tar.gz |
Remove useless periodic task that expires quota reservations
Quota reservations were removed in the Pike release, but there is still a
periodic task in the scheduler manager that runs every minute to expire
reservations, which won't actually do anything.
This patch remove this periodic task and related codes.
Change-Id: Idae069e8cf6ce69e112de08a22c94b6b590f9a69
Closes-bug: #1719048
Diffstat (limited to 'nova/quota.py')
-rw-r--r-- | nova/quota.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/nova/quota.py b/nova/quota.py index 688ddd9f9f..0e95b15d28 100644 --- a/nova/quota.py +++ b/nova/quota.py @@ -903,17 +903,6 @@ class DbQuotaDriver(object): objects.Quotas.destroy_all_by_project(context, project_id) - def expire(self, context): - """Expire reservations. - - Explores all currently existing reservations and rolls back - any that have expired. - - :param context: The request context, for access checks. - """ - - db.reservation_expire(context) - class NoopQuotaDriver(object): """Driver that turns quotas calls into no-ops and pretends that quotas @@ -1231,16 +1220,6 @@ class NoopQuotaDriver(object): """ pass - def expire(self, context): - """Expire reservations. - - Explores all currently existing reservations and rolls back - any that have expired. - - :param context: The request context, for access checks. - """ - pass - class BaseResource(object): """Describe a single resource for quota checking.""" @@ -1795,17 +1774,6 @@ class QuotaEngine(object): self._driver.destroy_all_by_project(context, project_id) - def expire(self, context): - """Expire reservations. - - Explores all currently existing reservations and rolls back - any that have expired. - - :param context: The request context, for access checks. - """ - - self._driver.expire(context) - @property def resources(self): return sorted(self._resources.keys()) |