nova/nova/conductor
Erik Olof Gunnar Andersson 3ec4c5ed9c Cleanup when hitting MaxRetriesExceeded from no host_available
Prior to this patch there was a condition when no
host_available was true and an exception would get
raised without first cleaning up the instance.
This causes instances to get indefinitely stuck in
a scheduling state.

This patch fixes this by calling the clean up function
and then exits build_instances using a return statement.

The related functional regression recreate test is updated
to show this fixes the bug.

Change-Id: I6a2c63a4c33e783100208fd3f45eb52aad49e3d6
Closes-bug: #1837955
(cherry picked from commit b98d4ba6d5)
(cherry picked from commit fcc2b9e33e)
(cherry picked from commit e3b68a1c8b)
2019-07-30 12:26:08 -04:00
..
tasks fix up numa-topology live migration hypervisor check 2019-07-02 14:25:41 +00:00
__init__.py Remove conductor local api:s and 'use_local' config option 2016-10-18 14:26:06 +02:00
api.py Change compute RPC to use alternates for resize 2018-01-22 20:09:15 +00:00
manager.py Cleanup when hitting MaxRetriesExceeded from no host_available 2019-07-30 12:26:08 -04:00
rpcapi.py Change compute RPC to use alternates for resize 2018-01-22 20:09:15 +00:00