From 42f7e25125b9148b2c27160fe8a7b897ba7c9c45 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Fri, 23 Feb 2018 12:18:02 -0800 Subject: [PATCH] Retry glance API sanity checks Apparently this API takes a little while to get started and working. Change-Id: I328929d596765d3597f4f868cbbe288b63130bca --- ansible/roles/glance/tasks/check.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/glance/tasks/check.yml b/ansible/roles/glance/tasks/check.yml index af408d41d3..1868ecfa31 100644 --- a/ansible/roles/glance/tasks/check.yml +++ b/ansible/roles/glance/tasks/check.yml @@ -9,6 +9,10 @@ endpoint_type: "{{ openstack_interface }}" delegate_to: "{{ groups['glance-api'][0] }}" run_once: True + register: img_create + retries: 10 + delay: 3 + until: img_create | success when: kolla_enable_sanity_glance | bool - name: Glance sanity check - cleanup