The fill_virtual_interface_list online data migration creates a
fake mostly empty instance record to satisfy a foreign key constraint
in the virtual_interfaces table which is used as a marker when paging
across cells to fulfill the migration. The problem is if you list deleted
servers (as admin) with the all_tenants=1 and deleted=1 filters, the API
will fail with a 500 error trying to load the instance.flavor field.
This adds a functional regression test for the bug.
Change-Id: I2030412566dfc6ec23dbf37685f6e6d145f710dc
Related-Bug: #1825034
(cherry picked from commit 91056970b5359b8410348010ce7a96547272e1c8)
Reviewed: https:/ /review. opendev. org/657420 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=840f109afc5 37c4818288a2bea 09d550ca66ac14
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 840f109afc537c4 818288a2bea09d5 50ca66ac14
Author: Matt Riedemann <email address hidden>
Date: Tue Apr 16 15:18:30 2019 -0400
Add regression test for bug 1825034
The fill_virtual_ interface_ list online data migration creates a
fake mostly empty instance record to satisfy a foreign key constraint
in the virtual_interfaces table which is used as a marker when paging
across cells to fulfill the migration. The problem is if you list deleted
servers (as admin) with the all_tenants=1 and deleted=1 filters, the API
will fail with a 500 error trying to load the instance.flavor field.
This adds a functional regression test for the bug.
Change-Id: I2030412566dfc6 ec23dbf37685f6e 6d145f710dc 410348010ce7a96 547272e1c8)
Related-Bug: #1825034
(cherry picked from commit 91056970b5359b8