Comment 13 for bug 1837995

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/nova/+/785068
Committed: https://opendev.org/openstack/nova/commit/21241b38dd4bc2c74a69aed489ada5c611395920
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 21241b38dd4bc2c74a69aed489ada5c611395920
Author: melanie witt <email address hidden>
Date: Fri Feb 12 21:40:16 2021 +0000

    Add functional test for bug 1837995

    This adds a functional test to reproduce the bug where when calling an
    API that will examine a deleted instance record (examples: GET /servers/detail
    and GET /os-simple-tenant-usage), if that instance's related records
    have only been partially archived (example: 'instance_extra' record was
    archived but 'instances' record has not been archived yet) then the API
    call fails with the following error:

      Unexpected API Error ... <class 'nova.exception.OrphanedObjectError'>
      (HTTP 500)

    Related-Bug: #1837995

    Change-Id: Ia225ee86536248d2540de0d7a1cd012333e708a2
    (cherry picked from commit 3d4e53f832792cc49001f1588164e28b84c16d7a)