Just for my own notes, this is where we call _shutdown_instance prior to reschedule if driver.spawn fails:
https://github.com/openstack/nova/blob/7125dcb9cb821faf3c68526ac34365a28141e480/nova/compute/manager.py#L2364
Because that's the except block for the context manager in which driver.spawn is called:
https://github.com/openstack/nova/blob/7125dcb9cb821faf3c68526ac34365a28141e480/nova/compute/manager.py#L2092
https://github.com/openstack/nova/blob/7125dcb9cb821faf3c68526ac34365a28141e480/nova/compute/manager.py#L2108
Just for my own notes, this is where we call _shutdown_instance prior to reschedule if driver.spawn fails:
https:/ /github. com/openstack/ nova/blob/ 7125dcb9cb821fa f3c68526ac34365 a28141e480/ nova/compute/ manager. py#L2364
Because that's the except block for the context manager in which driver.spawn is called:
https:/ /github. com/openstack/ nova/blob/ 7125dcb9cb821fa f3c68526ac34365 a28141e480/ nova/compute/ manager. py#L2092
https:/ /github. com/openstack/ nova/blob/ 7125dcb9cb821fa f3c68526ac34365 a28141e480/ nova/compute/ manager. py#L2108