The fill_virtual_interface_list online data migration added
in Stein creates a fake instance marker record without some
fields (like flavor) which will fail to load and result in
a 500 error when listing deleted servers across all tenants:
openstack server list --all-projects --deleted
This fixes the issue by excluding the specific fake marker
instance when listing servers in the API.
This admittedly isn't great but it's one of many not-so-great
options (listed in the bug) and also something that we'll
eventually remove when we drop the online data migration.
Change-Id: Ibd34b7f24016641bc251f85e6ea17e8a969c3095
Closes-Bug: #1825034
(cherry picked from commit f9eb685bee156590600889449470b35c993cc4cf)
Reviewed: https:/ /review. opendev. org/657421 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=af07ddb7344 74051ed77c425bf 8a50426c2d1a88
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit af07ddb73447405 1ed77c425bf8a50 426c2d1a88
Author: Matt Riedemann <email address hidden>
Date: Tue Apr 16 17:47:08 2019 -0400
Exclude fake marker instance when listing servers
The fill_virtual_ interface_ list online data migration added
in Stein creates a fake instance marker record without some
fields (like flavor) which will fail to load and result in
a 500 error when listing deleted servers across all tenants:
openstack server list --all-projects --deleted
This fixes the issue by excluding the specific fake marker
instance when listing servers in the API.
This admittedly isn't great but it's one of many not-so-great
options (listed in the bug) and also something that we'll
eventually remove when we drop the online data migration.
Change-Id: Ibd34b7f2401664 1bc251f85e6ea17 e8a969c3095 0600889449470b3 5c993cc4cf)
Closes-Bug: #1825034
(cherry picked from commit f9eb685bee15659