nova/nova/tests/unit/compute
Ildiko Vancsa ae53c22457 Handle Cinder 3.27 style attachments in swap_volume
This adds the support for new style volume attachments
to the swap volume operation.

If the existing volume attachment (old_volume) was created
using the new flow, it will have attachment_id set. Based
on that the API will create a new volume attachment for the
volume being swapped to and then pass that attachment to the
compute over RPC. Note that we do not yet create new-style
volume attachments so this is all no-op code for now. And
when we do start creating new-style volume attachments, that
will only be allowed when Cinder is new enough (3.27 microversion)
and all compute services are upgraded, so we don't perform
any nova-compute service version checks here.

Once on the compute, we key off the new_attachment_id being
passed from the API to tell if we should use the old or new
style calls to Cinder. For example, initialize_connection and
terminate_connection are replaced with attachment_update and
attachment_delete.

Co-Authored-By: Matt Riedemann <mriedem.os@gmail.com>
Co-Authored-By: John Griffith <john.griffith8@gmail.com>

Depends-On: I23391300468cc5e2f45a12d5ad8617ab48c21e6a

Partially Implements: blueprint cinder-new-attach-apis

Change-Id: I4b8bd01f1ffe2640fe7313213bf853d2e1bef9dd
2017-07-07 03:01:26 -04:00
..
monitors Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py
eventlet_utils.py
fake_resource_tracker.py rt: explicitly pass compute node to _update() 2017-01-12 11:30:03 -08:00
test_claims.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
test_compute.py Merge "Add keypairs field to InstanceCreatePayload" 2017-06-29 16:44:47 +00:00
test_compute_api.py Handle Cinder 3.27 style attachments in swap_volume 2017-07-07 03:01:26 -04:00
test_compute_cells.py Consolidate unit tests for shelve API 2017-03-29 19:03:24 +09:00
test_compute_mgr.py Handle Cinder 3.27 style attachments in swap_volume 2017-07-07 03:01:26 -04:00
test_compute_utils.py Add key_name field to InstancePayload 2017-06-28 11:32:21 +02:00
test_compute_xen.py conf: Remove config option compute_ manager 2016-12-08 20:05:52 +08:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Handle uuid in HostAPI.compute_node_get 2017-06-19 09:57:49 -04:00
test_keypairs.py Stop using mox stubs in test_keypairs.py 2017-06-26 14:50:40 +09:00
test_provider_tree.py placement: adds ProviderTree for nested resources 2017-06-26 11:33:38 +01:00
test_resource_tracker.py Fix regression preventing reporting negative resources for overcommit 2017-06-16 07:39:17 -07:00
test_rpcapi.py Handle Cinder 3.27 style attachments in swap_volume 2017-07-07 03:01:26 -04:00
test_shelve.py Consolidate unit tests for shelve API 2017-03-29 19:03:24 +09:00
test_stats.py Address nits in Ia2296302 2016-03-08 16:48:08 +00:00
test_virtapi.py Remove mox from nova/tests/unit/compute/test_virtapi.py 2016-11-28 08:52:00 +00:00