Explorar o código

Add retry to openstack heat stack create

Tzu-Mainn Chen %!s(int64=6) %!d(string=hai) anos
pai
achega
6128518400
Modificáronse 1 ficheiros con 3 adicións e 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 }}"