Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure build request exists before creating instance
When creating instances in conductor, the build requests are coming from the compute API and might be stale by the time the instance is created, i.e. the build request might have been deleted from the database before the instance is actually created in a cell. This is trivial to recreate; all you need to do is create a server and then immediately delete it, then try to perform some kind of action on the server expecting it to be deleted but the action might not return a 404 for a missing instance. We're seeing this in Tempest runs where the expected 404 for the deleted instance is a 409 because the test is trying to perform an action on a server while it's building, which is generally not allowed. This fixes the issue by making a last-second check to make sure the build request still exists before the instance is created in a cell. Change-Id: I6c32d5a4086a227d59ad7b1f6f50e7e532c74c84 Closes-Bug: #1660878
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters