Microversion 2.56 allows cold migrating to a specified target host. The
compute API sets the requested destination on the request spec with the
specified target host and then conductor sends that request spec to the
scheduler to validate the host. Conductor later persists the changes to
the request spec because it's the resize flow and the flavor could change
(even though in this case it won't since it's a cold migrate). After
confirming the resize, if the server is live migrated it will fail during
scheduling because of the persisted RequestSpec.requested_destination
from the cold migration, and you can't live migrate to the same host on
which the instance is currently running.
This change adds a test to recreate the regression bug.
Change-Id: I588655fdd90917d00ccf5eb0a8df7bccc1ac0e81
Related-Bug: #1797580
(cherry picked from commit bfc8d1052ba6f1011fcdb882a825694acf98dd39)
Reviewed: https:/ /review. openstack. org/611938 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=cb9c96f0a82 87a3261432c75f9 178275780cec38
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit cb9c96f0a8287a3 261432c75f91782 75780cec38
Author: Matt Riedemann <email address hidden>
Date: Fri Oct 12 11:37:38 2018 -0400
Add regression test for bug 1797580
Microversion 2.56 allows cold migrating to a specified target host. The requested_ destination
compute API sets the requested destination on the request spec with the
specified target host and then conductor sends that request spec to the
scheduler to validate the host. Conductor later persists the changes to
the request spec because it's the resize flow and the flavor could change
(even though in this case it won't since it's a cold migrate). After
confirming the resize, if the server is live migrated it will fail during
scheduling because of the persisted RequestSpec.
from the cold migration, and you can't live migrate to the same host on
which the instance is currently running.
This change adds a test to recreate the regression bug.
Change-Id: I588655fdd90917 d00ccf5eb0a8df7 bccc1ac0e81 11fcdb882a82569 4acf98dd39)
Related-Bug: #1797580
(cherry picked from commit bfc8d1052ba6f10