Bug 1702048

Summary: [OSP 16] Build requests can be orphaned without instance mapping
Product: Red Hat OpenStack Reporter: Andreas Karis <akaris>
Component: openstack-novaAssignee: melanie witt <mwitt>
Status: CLOSED ERRATA QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: dasmith, dhill, eglynn, gkadam, jhakimra, kchamart, ltamagno, lyarwood, mbooth, mwitt, sbauza, sgordon, smooney, vromanso
Target Milestone: Upstream M2Keywords: Triaged
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-20.0.1-0.20191025043858.390db63.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1703610 1703612 1703614 1761368 (view as bug list) Environment:
Last Closed: 2020-02-06 14:40:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1703610, 1703612, 1703614, 1761368    

Description Andreas Karis 2019-04-22 20:04:00 UTC
Description of problem:
Please port the fix from https://bugs.launchpad.net/nova/+bug/1784093 to OSP 13

Version-Release number of selected component (if applicable):
OpenStack Platform 13

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

~~~
Inspection of the database showed that the "instance" had a build request but *no* instance mapping and *no* instance record in any cell. And the instance could not be deleted even though it appeared in the 'nova list' because the delete API first does a compute API().get in order to get the instance object to pass down to the compute API().delete method. The compute API().get fails with InstanceNotFound because the _get_instance method raises InstanceNotFound if there is no instance mapping for the instance.
~~~

Comment 6 melanie witt 2019-04-26 21:56:38 UTC
https://review.opendev.org/586742 has merged upstream.

Comment 7 David Hill 2019-05-22 20:32:18 UTC
This seems to trigger this behavior [1] where instances are not displayed in Horizon even though they are not in BUILD but as soon as one is hit, listing instances breaks.

[1] https://bugzilla.redhat.com/1712564

Comment 8 David Hill 2019-05-22 20:38:29 UTC
*** Bug 1712564 has been marked as a duplicate of this bug. ***

Comment 10 Andreas Karis 2019-07-29 13:34:59 UTC
Hi,

The customer requested some more traction with regards to this bug report. How long will it take before this makes it into OSP 16 and from there to 13?

Thanks,

Andreas

Comment 11 Andreas Karis 2019-10-14 09:20:31 UTC
Hi,

This BZ was a backport request for OSP 13. https://review.opendev.org/#/c/656031/

Comment 12 Andreas Karis 2019-10-14 09:21:39 UTC
Hi,

This BZ was a backport request for OSP 13. Did this involuntarily end up as triaged for OSP 16?  (see title and PM flag). 

We'd need https://review.opendev.org/#/c/656031/ in downstream OSP 13.

Thanks,

Andreas

Comment 13 Andreas Karis 2019-10-14 09:26:01 UTC
My bad, just saw https://bugzilla.redhat.com/show_bug.cgi?id=1703614

Comment 16 errata-xmlrpc 2020-02-06 14:40:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:0283