From 9b9878101542ff92d53553e44efb7ee6497be050 Mon Sep 17 00:00:00 2001 From: Kevin_Zheng Date: Wed, 3 May 2017 22:45:29 +0800 Subject: [PATCH] Use plain routes list for block_device_mapping instead of stevedore This patch adds block_device_mapping related routes by a plain list, instead of using stevedore. After all the Nova API endpoints moves to the plain routes list, the usage of stevedore for API loading will be removed from Nova. Partial-implement-blueprint api-no-more-extensions-pike Change-Id: I3d1774943708db3c285ca6597898393349970c7b --- .../openstack/compute/block_device_mapping.py | 16 ---------------- setup.cfg | 1 - 2 files changed, 17 deletions(-) diff --git a/nova/api/openstack/compute/block_device_mapping.py b/nova/api/openstack/compute/block_device_mapping.py index 4487bd7bb9..57fa73ee3d 100644 --- a/nova/api/openstack/compute/block_device_mapping.py +++ b/nova/api/openstack/compute/block_device_mapping.py @@ -20,30 +20,14 @@ from webob import exc from nova.api.openstack import api_version_request from nova.api.openstack.compute.schemas import block_device_mapping as \ schema_block_device_mapping -from nova.api.openstack import extensions from nova import block_device from nova import exception from nova.i18n import _ -ALIAS = "os-block-device-mapping" ATTRIBUTE_NAME = "block_device_mapping_v2" LEGACY_ATTRIBUTE_NAME = "block_device_mapping" -class BlockDeviceMapping(extensions.V21APIExtensionBase): - """Block device mapping boot support.""" - - name = "BlockDeviceMapping" - alias = ALIAS - version = 1 - - def get_resources(self): - return [] - - def get_controller_extensions(self): - return [] - - # use nova.api.extensions.server.extensions entry point to modify # server create kwargs # NOTE(gmann): This function is not supposed to use 'body_deprecated_param' diff --git a/setup.cfg b/setup.cfg index 7f20c96176..6a7854bb7b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -73,7 +73,6 @@ wsgi_scripts = nova.api.v21.extensions = baremetal_nodes = nova.api.openstack.compute.baremetal_nodes:BareMetalNodes - block_device_mapping = nova.api.openstack.compute.block_device_mapping:BlockDeviceMapping cells = nova.api.openstack.compute.cells:Cells cloudpipe = nova.api.openstack.compute.cloudpipe:Cloudpipe extension_info = nova.api.openstack.compute.extension_info:ExtensionInfo