Skip to content

Commit 06cfba4

Browse files
sdatkodanpawlik
authored andcommitted
Add retries to kinit call
We observe at times there are failures that seem related to the temporary unavailability of the authentication service when a lot of jobs attempt to get token. Hence, we add retry. Jira: OSPCIX-797
1 parent e11569b commit 06cfba4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

roles/dlrn_report/tasks/dlrn_report_results.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
kinit
2121
{{ cifmw_dlrn_report_krb_user_realm }}
2222
-k -t {{ cifmw_dlrn_report_keytab }}
23+
retries: 5
24+
delay: 60
25+
register: _kinit_status
26+
until: _kinit_status.rc == 0
2327
when: cifmw_dlrn_report_kerberos_auth|bool
2428

2529
- name: Set empty value for dlrnapi password

0 commit comments

Comments
 (0)