Retry on creating trove network

For pretty weird reason, first request to create a network to the neutron
fails with 500 without reasonable stack trace. Re-running request succeeds.
So we adding retries to the task which resolves metnioned issue.

Change-Id: I5b09dc3bc52d98df756cdc60c5e94cd1e7344e9a
This commit is contained in:
Dmitriy Rabotyagov 2021-03-24 18:36:43 +02:00 committed by Dmitriy Rabotyagov
parent 0650e1d2ea
commit d14cd8cea4

View File

@ -43,6 +43,10 @@
project: "{{ keystone_admin_tenant_id }}"
wait: yes
endpoint_type: "{{ trove_service_net_endpoint_type }}"
register: trove_network
until: trove_network is success
retries: 5
delay: 2
run_once: true
- name: Create trove service subnet
@ -60,6 +64,9 @@
wait: yes
endpoint_type: "{{ trove_service_net_endpoint_type }}"
register: subnet_create
until: subnet_create is success
retries: 5
delay: 2
run_once: true
# Block end
when: trove_service_net_setup