From 53e43c2ddb45282d5ce463ac42b224946c7ab9b5 Mon Sep 17 00:00:00 2001 From: bertiethorpe <84867280+bertiethorpe@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:15:05 +0000 Subject: [PATCH] Fix adhoc/rebuild wait_for_connection race condition When rebuilding nodes, a race condition can result in ssh connection being re-established before rebuild has begun. Delay of 60s fixes this. --- ansible/adhoc/rebuild.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/adhoc/rebuild.yml b/ansible/adhoc/rebuild.yml index c30737fd6..9e7a3a770 100644 --- a/ansible/adhoc/rebuild.yml +++ b/ansible/adhoc/rebuild.yml @@ -16,3 +16,6 @@ - command: "openstack server rebuild {{ instance_id | default(inventory_hostname) }}{% if rebuild_image is defined %} --image {{ rebuild_image }}{% endif %}" delegate_to: localhost - wait_for_connection: + delay: 60 + timeout: 600 +