Find instance in another cell during floating IP re-association
When associating a floating IP to instance A but it was already
associated with instance B, we try to refresh the info cache on
instance B. The problem is the context is targeted to the cell
for instance A and instance B might be in another cell, so we'll
get an InstanceNotFound error trying to lookup instance B.
This change tries to find the instance in another cell using its
instance mapping, and makes the code a bit more graceful if
instance B is deleted.
Reviewed: https:/ /review. opendev. org/656594 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=481cb5ce04e 220c26e5772f425 3d63e212adca45
Committed: https:/
Submitter: Zuul
Branch: master
commit 481cb5ce04e220c 26e5772f4253d63 e212adca45
Author: Matt Riedemann <email address hidden>
Date: Tue Apr 30 17:45:32 2019 -0400
Find instance in another cell during floating IP re-association
When associating a floating IP to instance A but it was already
associated with instance B, we try to refresh the info cache on
instance B. The problem is the context is targeted to the cell
for instance A and instance B might be in another cell, so we'll
get an InstanceNotFound error trying to lookup instance B.
This change tries to find the instance in another cell using its
instance mapping, and makes the code a bit more graceful if
instance B is deleted.
Change-Id: I71790afd0784d9 8050ccd7cc0e046 321da249cbe
Closes-Bug: #1826472