Browse Source

Add retry to openstack heat stack create

Tzu-Mainn Chen 6 years ago
parent
commit
6128518400
1 changed files with 3 additions and 0 deletions
  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 }}"