commit 9bccc5a04354b0490fbe7e0f0b98cf55d4b7c9c4
Author: Lee Yarwood <email address hidden>
Date: Wed Aug 11 12:04:11 2021 +0100
compute: Ensure updates to bdms during pre_live_migration are saved
When connecting volumes to the underlying host the virt drivers can
attempt to stash additional metadata returned from os-brick into the
connection_info associated with a bdm. This pretty janky behaviour
relies on someone later calling .save() against the underlying
BlockDeviceMapping object to persist these changes into the database as
happens in the driver block device layer during a standard volume
attach.
However during pre_live_migration no call was made to .save() resulting
in the changes made to the connection_info being lost. This change
simply introduces this call at the end of the pre_live_migration method
on the destination via the driver bdm objects we provide in
block_device_info.
Closes-Bug: #1939545
Change-Id: Iea8896682fc28e3a5cd25afa45238272bee745e1
(cherry picked from commit 962eda94d52321c3237da870c3d0455c6f0e851b)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /843680 /opendev. org/openstack/ nova/commit/ 9bccc5a04354b04 90fbe7e0f0b98cf 55d4b7c9c4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 9bccc5a04354b04 90fbe7e0f0b98cf 55d4b7c9c4
Author: Lee Yarwood <email address hidden>
Date: Wed Aug 11 12:04:11 2021 +0100
compute: Ensure updates to bdms during pre_live_migration are saved
When connecting volumes to the underlying host the virt drivers can Mapping object to persist these changes into the database as
attempt to stash additional metadata returned from os-brick into the
connection_info associated with a bdm. This pretty janky behaviour
relies on someone later calling .save() against the underlying
BlockDevice
happens in the driver block device layer during a standard volume
attach.
However during pre_live_migration no call was made to .save() resulting device_ info.
in the changes made to the connection_info being lost. This change
simply introduces this call at the end of the pre_live_migration method
on the destination via the driver bdm objects we provide in
block_
Closes-Bug: #1939545 3a5cd25afa45238 272bee745e1 3237da870c3d045 5c6f0e851b)
Change-Id: Iea8896682fc28e
(cherry picked from commit 962eda94d52321c