Explorar el Código

Add retry to openstack heat stack create

Tzu-Mainn Chen hace 6 años
padre
commit
6128518400
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      roles/openshift_openstack/tasks/provision.yml

+ 3 - 0
roles/openshift_openstack/tasks/provision.yml

@@ -58,6 +58,9 @@
 - name: Handle the Stack (create/delete)
   ignore_errors: True
   register: stack_create
+  until: stack_create is not failed
+  retries: 20
+  delay: 5
   os_stack:
     name: "{{ openshift_openstack_stack_name }}"
     state: "{{ openshift_openstack_stack_state }}"