Browse Source
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 <mriedem.os@gmail.com> NOTE(mriedem): The unit test had to be modified slightly due to not having change Ibc44e3b2261b314bb92062a88ca9ee6b81298dc3 in Pike. Closes-Bug: #1820337 Change-Id: If966eb1161c842ff49aa530e4482dbca87b61a3e (cherry picked from commitchanges/16/647916/164f6cbc912
) (cherry picked from commiteec39762cf
) (cherry picked from commitc8cb120964
) (cherry picked from commitddc2c9118a
)
2 changed files with 67 additions and 7 deletions
Loading…
Reference in new issue