nova/nova/volume
Lee Yarwood 8e130e2be7 Use migration_status during volume migrating and retyping
When swapping volumes Nova has to identify if the swap itself is related
to an underlying migration or retype of the volume by Cinder.  Nova
would previously use the status of the volume to determine if the volume
was retyping or migrating.

However in the migration case where a volume is moved directly between
hosts the volume is never given a status  of migrating by Cinder leading
to Nova never calling the os-migrate_volume_completion cinder API to
complete the migration.

This change switches Nova to use the migration_status of the volume to
ensure that this API is called for both retypes and migrations.

Depends-On: https://review.openstack.org/#/c/639331/
Change-Id: I1bdf3431bda2da98380e0dcaa9f952e6768ca3af
Closes-bug: #1803961
(cherry picked from commit 53c3cfa7a0)
(cherry picked from commit 91282f879c)
2019-05-07 12:43:10 +01:00
..
__init__.py Remove deprecated config option volume_api_class 2016-07-21 23:08:08 +08:00
cinder.py Use migration_status during volume migrating and retyping 2019-05-07 12:43:10 +01:00