Add regression test for persisted RequestSpec.retry from failed resize
Commit 74ab427d4796d8a386f84a15cc49188c2a60f8f1 in Newton added
code to persist changes to the RequestSpec during a resize since
the flavor changes.
That change inadvertantly also persisted any failed hosts during
the resize that are stored in the RequestSpec.retry field during
a reschedule.
The problem is that later those persisted failed hosts are rejected
by the RetryFilter, which can be confusing if an admin is trying
to live migrate or evacate the instance to one of those specific
hosts.
This adds a functional regression test to show the failure, which
will be fixed in a separate change that then modifies the assertions.
NOTE(mriedem): The confirmResize API post call in this version
needed the check_response_status=[204] kwarg because commit
8ec0b4390401ce62cab0ea9b3786dc487e26c9f7 isn't in Pike.
Change-Id: Ib8a23db838b0bbf2cfb8123cf6aaa39d00ff0640
Related-Bug: #1718512
(cherry picked from commit 89448bea577b30c40ce39185d14fe14f9c61a0c2)
(cherry picked from commit c2dc902e39eb345ebf674ad47422f1e72ec170e6)
Reviewed: https:/ /review. openstack. org/560145 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=004e9acf999 64ac78f85d3efbd 0a04404bd9a3ef
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 004e9acf99964ac 78f85d3efbd0a04 404bd9a3ef
Author: Matt Riedemann <email address hidden>
Date: Wed Sep 20 14:24:44 2017 -0400
Add regression test for persisted RequestSpec.retry from failed resize
Commit 74ab427d4796d8a 386f84a15cc4918 8c2a60f8f1 in Newton added
code to persist changes to the RequestSpec during a resize since
the flavor changes.
That change inadvertantly also persisted any failed hosts during
the resize that are stored in the RequestSpec.retry field during
a reschedule.
The problem is that later those persisted failed hosts are rejected
by the RetryFilter, which can be confusing if an admin is trying
to live migrate or evacate the instance to one of those specific
hosts.
This adds a functional regression test to show the failure, which
will be fixed in a separate change that then modifies the assertions.
NOTE(mriedem): The confirmResize API post call in this version status= [204] kwarg because commit 1ce62cab0ea9b37 86dc487e26c9f7 isn't in Pike.
needed the check_response_
8ec0b439040
Change-Id: Ib8a23db838b0bb f2cfb8123cf6aaa 39d00ff0640 40ce39185d14fe1 4f9c61a0c2) ebf674ad47422f1 e72ec170e6)
Related-Bug: #1718512
(cherry picked from commit 89448bea577b30c
(cherry picked from commit c2dc902e39eb345