Handle missing marker during online data migration
During upgrade the instance used by the request spec marker could be
deleted and purged between sessions. This would cause the database
online data migration to fail as the marker instance couldn't be found.
Fix by handling the MarkerNotFound exception and re-trying without the
marker. This will go through all the instances and reset the marker when
done.
Closes-Bug: #1793419
Change-Id: If96e3d038346f16cc93209bccf3db028bacfe59b
Signed-off-by: Jack Ding <email address hidden>
(cherry picked from commit ff03b157b930de23e5912802cbfbc86889c869c2)
(cherry picked from commit 57b46754ff67c52c49e10d3ae176515cdcda30e3)
(cherry picked from commit 164b1ba301f580edbfa5a52a80b51f49f2a28fea)
Reviewed: https:/ /review. openstack. org/611343 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=456e5439f58 967fc03c7c13e11 fe0e15bea84486
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 456e5439f58967f c03c7c13e11fe0e 15bea84486
Author: Jack Ding <email address hidden>
Date: Tue Sep 25 13:20:25 2018 -0400
Handle missing marker during online data migration
During upgrade the instance used by the request spec marker could be
deleted and purged between sessions. This would cause the database
online data migration to fail as the marker instance couldn't be found.
Fix by handling the MarkerNotFound exception and re-trying without the
marker. This will go through all the instances and reset the marker when
done.
Closes-Bug: #1793419 6cc93209bccf3db 028bacfe59b 3e5912802cbfbc8 6889c869c2) c49e10d3ae17651 5cdcda30e3) dbfa5a52a80b51f 49f2a28fea)
Change-Id: If96e3d038346f1
Signed-off-by: Jack Ding <email address hidden>
(cherry picked from commit ff03b157b930de2
(cherry picked from commit 57b46754ff67c52
(cherry picked from commit 164b1ba301f580e