Skip to content

Commit e27fa79

Browse files
committed
Add retry logic and timeout for cluster status validation in pre-validation tasks
1 parent fd557f5 commit e27fa79

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/roles/misc/tasks/pre-validations-db.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
database_sid: "{{ db_sid | lower }}"
2626
saphanasr_provider: "{{ saphanasr_provider | default('SAPHanaSR') }}"
2727
register: cluster_status_pre
28+
until: cluster_status_pre.primary_node != "" or
29+
cluster_status_pre.secondary_node != ""
30+
timeout: 5
31+
retries: 3
2832

2933
- name: "Pre Validation: CleanUp any failed resource"
3034
become: true

0 commit comments

Comments
 (0)