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)
Reviewed: https:/ /review. openstack. org/610974 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=164b1ba301f 580edbfa5a52a80 b51f49f2a28fea
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 164b1ba301f580e dbfa5a52a80b51f 49f2a28fea
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)
Change-Id: If96e3d038346f1
Signed-off-by: Jack Ding <email address hidden>
(cherry picked from commit ff03b157b930de2
(cherry picked from commit 57b46754ff67c52