Add retries to all os_* module tasks
Given that the API response may include transient failures, we ensure that all these tasks have retries to handle them. Change-Id: I22846b9fed77c409c48a9d2e34e9207484c08b47
This commit is contained in:
parent
456268568d
commit
89764e4aaf
@ -50,6 +50,10 @@
|
||||
image: amphora-x64-haproxy
|
||||
interface: admin
|
||||
verify: "{{ not keystone_service_adminuri_insecure }}"
|
||||
register: get_image_facts
|
||||
until: get_image_facts is success
|
||||
retries: 5
|
||||
delay: 10
|
||||
when:
|
||||
- octavia_download_result | changed
|
||||
|
||||
@ -77,5 +81,9 @@
|
||||
id: "{{ openstack.id }}"
|
||||
interface: admin
|
||||
verify: "{{ not keystone_service_adminuri_insecure }}"
|
||||
register: remove_old_image
|
||||
until: remove_old_image is success
|
||||
retries: 5
|
||||
delay: 10
|
||||
when:
|
||||
- openstack is defined # result from os_image_facts
|
||||
|
@ -38,6 +38,10 @@
|
||||
description: "security group for octavia amphora"
|
||||
interface: admin
|
||||
verify: "{{ not keystone_service_adminuri_insecure }}"
|
||||
register: add_security_group
|
||||
until: add_security_group is success
|
||||
retries: 5
|
||||
delay: 10
|
||||
|
||||
- name: Create security group rule for agent
|
||||
os_security_group_rule:
|
||||
@ -56,6 +60,10 @@
|
||||
security_group: "{{ octavia_security_group_name }}"
|
||||
interface: admin
|
||||
verify: "{{ not keystone_service_adminuri_insecure }}"
|
||||
register: add_security_group_rule
|
||||
until: add_security_group_rule is success
|
||||
retries: 5
|
||||
delay: 10
|
||||
|
||||
- name: Create security group rule for ssh
|
||||
os_security_group_rule:
|
||||
@ -74,6 +82,10 @@
|
||||
remote_ip_prefix: "{{ octavia_security_group_rule_cidr }}"
|
||||
interface: admin
|
||||
verify: "{{ not keystone_service_adminuri_insecure }}"
|
||||
register: add_security_group_rule
|
||||
until: add_security_group_rule is success
|
||||
retries: 5
|
||||
delay: 10
|
||||
when:
|
||||
- octavia_ssh_enabled | bool
|
||||
|
||||
@ -92,5 +104,9 @@
|
||||
remote_ip_prefix: "{{ octavia_security_group_rule_cidr }}"
|
||||
interface: admin
|
||||
verify: "{{ not keystone_service_adminuri_insecure }}"
|
||||
register: add_security_group_rule
|
||||
until: add_security_group_rule is success
|
||||
retries: 5
|
||||
delay: 10
|
||||
when:
|
||||
- debug | bool
|
||||
|
Loading…
Reference in New Issue
Block a user