commit 64f6cbc9120e3c288f312eddc59452dee4998f93
Author: Matthew Booth <email address hidden>
Date: Fri Mar 22 11:47:32 2019 +0000
Fix incomplete instance data returned after build failure
This change fixes a race in _cleanup_build_artifacts. We were updating
the instance mapping to point at the cell in which the instance was
created before the instance record was complete, i.e. before the related
BDMs and tags were created in the cell DB. Updating the instance mapping
exposes the cell's version of the instance to the API. If the API happened
to fetch it before it was finished being created it would return
incomplete data.
Co-Authored-By: Matt Riedemann <email address hidden>
Reviewed: https:/ /review. openstack. org/645546 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=64f6cbc9120 e3c288f312eddc5 9452dee4998f93
Committed: https:/
Submitter: Zuul
Branch: master
commit 64f6cbc9120e3c2 88f312eddc59452 dee4998f93
Author: Matthew Booth <email address hidden>
Date: Fri Mar 22 11:47:32 2019 +0000
Fix incomplete instance data returned after build failure
This change fixes a race in _cleanup_ build_artifacts . We were updating
the instance mapping to point at the cell in which the instance was
created before the instance record was complete, i.e. before the related
BDMs and tags were created in the cell DB. Updating the instance mapping
exposes the cell's version of the instance to the API. If the API happened
to fetch it before it was finished being created it would return
incomplete data.
Co-Authored-By: Matt Riedemann <email address hidden>
Closes-Bug: #1820337 ff49aa530e4482d bca87b61a3e
Change-Id: If966eb1161c842