Commit 9bccc5a
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 962eda9)1 parent 9f7b81c commit 9bccc5a
File tree
3 files changed
+18
-3
lines changed- nova
- compute
- tests
- functional/regressions
- unit/compute
3 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8214 | 8214 | | |
8215 | 8215 | | |
8216 | 8216 | | |
| 8217 | + | |
| 8218 | + | |
| 8219 | + | |
| 8220 | + | |
| 8221 | + | |
| 8222 | + | |
| 8223 | + | |
| 8224 | + | |
8217 | 8225 | | |
8218 | 8226 | | |
8219 | 8227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9220 | 9220 | | |
9221 | 9221 | | |
9222 | 9222 | | |
| 9223 | + | |
| 9224 | + | |
| 9225 | + | |
| 9226 | + | |
9223 | 9227 | | |
9224 | 9228 | | |
9225 | 9229 | | |
| |||
9244 | 9248 | | |
9245 | 9249 | | |
9246 | 9250 | | |
| 9251 | + | |
9247 | 9252 | | |
| 9253 | + | |
| 9254 | + | |
9248 | 9255 | | |
9249 | 9256 | | |
9250 | 9257 | | |
| |||
0 commit comments