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.
Reviewed: https:/ /review. opendev. org/653098 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=91056970b53 59b8410348010ce 7a96547272e1c8
Committed: https:/
Submitter: Zuul
Branch: master
commit 91056970b5359b8 410348010ce7a96 547272e1c8
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
Related-Bug: #1825034