Skip to content

Commit

Permalink
Merge pull request #35 from varad-ahirwadkar/ocp_healthcheck
Browse files Browse the repository at this point in the history
Adding retries for cluster operator check
  • Loading branch information
ppc64le-cloud-bot authored Jan 16, 2023
2 parents 504a385 + 19f2a49 commit 850f7b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playbooks/roles/check-cluster-health/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
- name: Check all co are in 'Available' state and not in 'Progressing' or 'Degraded' state
shell: oc get co --no-headers | awk '{ print $3 $4 $5 }' | grep -w -v TrueFalseFalse | wc -l
register: cluster_operator_count
until: cluster_operator_count.stdout | int == 0
retries: 6
delay: 60
ignore_errors: true

- name: Check all node are healthy
shell: oc get nodes --no-headers | grep -v Ready | wc -l
Expand Down

0 comments on commit 850f7b0

Please sign in to comment.