From ce7f21eeb0423b9090ee2bac3104a54b2f61012b Mon Sep 17 00:00:00 2001 From: Omer Date: Tue, 19 Oct 2021 13:46:39 +0200 Subject: [PATCH] Fix Tripleo reboot method So far the Triple reboot_method tried to re-activate the affected servers (which are supposed to be shutoff due to the compute reboot) before they were in the SHUTOFF status (and hence no action would occur). This patch fixes the Triple reboot method by making nova to wait for the servers to be on SHUTOFF status before re-activating them. Change-Id: Ic8d71fa0bf5f08ef15a53b6e500e3905e5886d26 --- tobiko/tripleo/_topology.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tobiko/tripleo/_topology.py b/tobiko/tripleo/_topology.py index fc946ec52..c483bc969 100644 --- a/tobiko/tripleo/_topology.py +++ b/tobiko/tripleo/_topology.py @@ -157,6 +157,8 @@ class TripleoTopologyNode(topology.OpenStackTopologyNode): if reactivate_servers: for server in servers_to_restart: + nova.wait_for_server_status(server=server.id, + status='SHUTOFF') LOG.debug(f'Server {server.name} with ID {server.id} ' f'had a SHUTOFF status before being ' f'restarted')