diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini index 66169559bfb0..20d6b848c0bc 100644 --- a/etc/nova/api-paste.ini +++ b/etc/nova/api-paste.ini @@ -48,9 +48,6 @@ paste.filter_factory = nova.api.openstack:FaultWrapper.factory [filter:noauth2] paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory -[filter:legacy_ratelimit] -paste.filter_factory = nova.api.openstack.compute.limits:RateLimitingMiddleware.factory - [filter:sizelimit] paste.filter_factory = oslo_middleware:RequestBodySizeLimiter.factory diff --git a/nova/api/openstack/compute/limits.py b/nova/api/openstack/compute/limits.py index 9a9569afd271..a5b682ec1229 100644 --- a/nova/api/openstack/compute/limits.py +++ b/nova/api/openstack/compute/limits.py @@ -13,18 +13,12 @@ # License for the specific language governing permissions and limitations # under the License. -from nova.api.openstack.compute.legacy_v2 import limits from nova.api.openstack.compute.views import limits as limits_views from nova.api.openstack import extensions from nova.api.openstack import wsgi from nova import quota -# NOTE(alex_xu): This is just for keeping backward compatible with v2 endpoint -# in api-paste.ini. This will be removed after v2 API code deprecated in the -# future. -RateLimitingMiddleware = limits.RateLimitingMiddleware - QUOTAS = quota.QUOTAS ALIAS = 'limits' authorize = extensions.os_compute_authorizer(ALIAS)