commit 53c3cfa7a02d684ce27800e22e00a816af44c510
Author: Lee Yarwood <email address hidden>
Date: Fri Feb 15 16:26:23 2019 +0000
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.
Reviewed: https:/ /review. opendev. org/637224 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=53c3cfa7a02 d684ce27800e22e 00a816af44c510
Committed: https:/
Submitter: Zuul
Branch: master
commit 53c3cfa7a02d684 ce27800e22e00a8 16af44c510
Author: Lee Yarwood <email address hidden>
Date: Fri Feb 15 16:26:23 2019 +0000
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 volume_ completion cinder API to
hosts the volume is never given a status of migrating by Cinder leading
to Nova never calling the os-migrate_
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/ 98380e0dcaa9f95 2e6768ca3af
Change-Id: I1bdf3431bda2da
Closes-bug: #1803961