Skip to content

Commit 53e43c2

Browse files
authored
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.
1 parent e44e084 commit 53e43c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ansible/adhoc/rebuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
- command: "openstack server rebuild {{ instance_id | default(inventory_hostname) }}{% if rebuild_image is defined %} --image {{ rebuild_image }}{% endif %}"
1717
delegate_to: localhost
1818
- wait_for_connection:
19+
delay: 60
20+
timeout: 600
21+

0 commit comments

Comments
 (0)