commit 8c4db90d0398cefaac99fcef44a9e19d1bf40ad2
Author: Matt Riedemann <email address hidden>
Date: Tue Jun 6 17:28:42 2017 -0400
Avoid unnecessary lazy-loads in mutated_migration_context
If the instance isn't being migrated and has the
migration_context attribute set to None, like during a rebuild
operation, we should detect that and exit early rather
than lazy-load several fields (numa_topology, pci_requests,
and pci_devices - all separately) and then just not use/need
them.
Change-Id: I071ab575bfd80db029d542cebfdb3d4e34227881
Closes-Bug: #1696221
(cherry picked from commit c3d466dd4d9739844404fdd9c4170c4a8284a4aa)
Reviewed: https:/ /review. openstack. org/515581 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8c4db90d039 8cefaac99fcef44 a9e19d1bf40ad2
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 8c4db90d0398cef aac99fcef44a9e1 9d1bf40ad2
Author: Matt Riedemann <email address hidden>
Date: Tue Jun 6 17:28:42 2017 -0400
Avoid unnecessary lazy-loads in mutated_ migration_ context
If the instance isn't being migrated and has the context attribute set to None, like during a rebuild
migration_
operation, we should detect that and exit early rather
than lazy-load several fields (numa_topology, pci_requests,
and pci_devices - all separately) and then just not use/need
them.
Change-Id: I071ab575bfd80d b029d542cebfdb3 d4e34227881 44404fdd9c4170c 4a8284a4aa)
Closes-Bug: #1696221
(cherry picked from commit c3d466dd4d97398