add and unify the retries when messages are published to swift
The swift message actions can run into odd transient errors which can be "fixed"
with simple retries. This change ensures all of our swift messaging tasks have
retries and that those retries are all unified with a sensible delay.
Change-Id: I555c21d5108f9227cacc9487bbb4cc45037caf03
Signed-off-by: Kevin Carter <kecarter@redhat.com>
(cherry picked from commit 04abcf6ee4
)
This commit is contained in:
parent
e7e9af1f34
commit
c49b143eff
|
@ -95,7 +95,9 @@ workflows:
|
||||||
|
|
||||||
send_message:
|
send_message:
|
||||||
action: zaqar.queue_post
|
action: zaqar.queue_post
|
||||||
retry: count=5 delay=1
|
retry:
|
||||||
|
delay: 4
|
||||||
|
count: 16
|
||||||
input:
|
input:
|
||||||
queue_name: <% $.queue_name %>
|
queue_name: <% $.queue_name %>
|
||||||
messages:
|
messages:
|
||||||
|
@ -106,6 +108,9 @@ workflows:
|
||||||
workflow: tripleo.swift.v1.container_exists container=<% $.container %>
|
workflow: tripleo.swift.v1.container_exists container=<% $.container %>
|
||||||
input:
|
input:
|
||||||
create_container: true
|
create_container: true
|
||||||
|
retry:
|
||||||
|
delay: 4
|
||||||
|
count: 16
|
||||||
on-success:
|
on-success:
|
||||||
- wait_for_swift: <% not bool($.deployment_status) %>
|
- wait_for_swift: <% not bool($.deployment_status) %>
|
||||||
- persist_to_swift_plan_latest: <% bool($.deployment_status) %>
|
- persist_to_swift_plan_latest: <% bool($.deployment_status) %>
|
||||||
|
@ -113,7 +118,9 @@ workflows:
|
||||||
|
|
||||||
persist_to_swift:
|
persist_to_swift:
|
||||||
action: swift.put_object
|
action: swift.put_object
|
||||||
retry: count=5 delay=1
|
retry:
|
||||||
|
delay: 4
|
||||||
|
count: 16
|
||||||
input:
|
input:
|
||||||
container: <% $.container %>
|
container: <% $.container %>
|
||||||
obj: <% "{0}/{1}.yaml".format($.type, now().format("%Y-%m-%d_%H:%M:%S")) %>
|
obj: <% "{0}/{1}.yaml".format($.type, now().format("%Y-%m-%d_%H:%M:%S")) %>
|
||||||
|
@ -122,7 +129,9 @@ workflows:
|
||||||
|
|
||||||
persist_to_swift_plan_latest:
|
persist_to_swift_plan_latest:
|
||||||
action: swift.put_object
|
action: swift.put_object
|
||||||
retry: count=5 delay=1
|
retry:
|
||||||
|
delay: 4
|
||||||
|
count: 16
|
||||||
input:
|
input:
|
||||||
container: <% $.container %>
|
container: <% $.container %>
|
||||||
obj: <% "deployment_status.yaml" %>
|
obj: <% "deployment_status.yaml" %>
|
||||||
|
|
Loading…
Reference in New Issue