From 25d87004efeb2bacafcfbe19db80020a9374c036 Mon Sep 17 00:00:00 2001 From: zhangbailin Date: Sun, 14 Oct 2018 05:18:03 -0400 Subject: [PATCH] Add microversion 2.67 to rest api version history Add microversion 2.67 to REST API Version History, it is used as an index by novaclient's release note, and rename the "test_block_device" test case "test_from_api_invalid_oneof_image_id_or_destination_local_mapping" to "test_from_api_invalid_image_to_destination_local_mapping", mentioned by melwitt. Depends-On: https://review.openstack.org/#/c/606398/ Part of blueprint boot-instance-specific-storage-backend Change-Id: Ic6d562947f445c6f6cabd69484bc85b7aea88e48 --- nova/api/openstack/compute/rest_api_version_history.rst | 6 ++++++ nova/tests/unit/test_block_device.py | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nova/api/openstack/compute/rest_api_version_history.rst b/nova/api/openstack/compute/rest_api_version_history.rst index a3757beacf..1e2decd5fa 100644 --- a/nova/api/openstack/compute/rest_api_version_history.rst +++ b/nova/api/openstack/compute/rest_api_version_history.rst @@ -854,3 +854,9 @@ following APIs to filter by changes before or equal to the resource * ``GET /servers/detail`` * ``GET /servers/{server_id}/os-instance-actions`` * ``GET /os-migrations`` + +2.67 +---- + +Adds the ``volume_type`` parameter to ``block_device_mapping_v2``, which can +be used to specify cinder ``volume_type`` when creating a server. diff --git a/nova/tests/unit/test_block_device.py b/nova/tests/unit/test_block_device.py index 4e829812e5..52939cd3dd 100644 --- a/nova/tests/unit/test_block_device.py +++ b/nova/tests/unit/test_block_device.py @@ -600,8 +600,7 @@ class TestBlockDeviceDict(test.NoDBTestCase): self.assertEqual(retexp, block_device.BlockDeviceDict.from_api(api_dict, True)) - def test_from_api_invalid_oneof_image_id_or_destination_local_mapping( - self): + def test_from_api_invalid_image_to_destination_local_mapping(self): api_dict = {'id': 1, 'source_type': 'image', 'destination_type': 'local',