Skip to content

Commit 9353909

Browse files
committed
Add retries when OVN DBs are restored
Sometimes restoring OVB DB backups to podified ovsdb-servers fails with the following error: ovsdb-client: transaction failed (End of file) With this change, those tasks are retried.
1 parent 54efe19 commit 9353909

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/roles/ovn_adoption/tasks/main.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@
261261
{{ ovn_copy_shell_vars }}
262262
263263
oc exec ovn-copy-data -- bash -c "ovsdb-client -v restore {{ tls_opts }} {{ proto }}:${{ ovn_db_ip }}:{{ ovn_db_port }} < /backup/{{ ovn_db_file }}"
264+
register: podified_ovn_db_restore
265+
until: podified_ovn_db_restore is success
266+
retries: 5
267+
delay: "{{ ovn_retry_delay }}"
264268
loop:
265269
- nb
266270
- sb

0 commit comments

Comments
 (0)