Skip to content

Commit

Permalink
add retry when checking if OSD is up with 30s delay (#134)
Browse files Browse the repository at this point in the history
Signed-off-by: Lu Yu <[email protected]>

Signed-off-by: Lu Yu <[email protected]>
  • Loading branch information
BionIT authored Dec 19, 2022
1 parent 45319c6 commit fd854ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/functional-test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Step 1 - Check If OSD is Up
run: |
sleep 30s
curl -XGET -k -u '${{secrets.osd-user}}:${{secrets.osd-user-password}}' '${{inputs.endpoint}}/api/status' > $HOME/osd-response.json
curl -XGET --retry 15 --retry-delay 30 --retry-all-errors -k -u '${{secrets.osd-user}}:${{secrets.osd-user-password}}' '${{inputs.endpoint}}/api/status' > $HOME/osd-response.json
echo "OSD_STATUS=$(cat $HOME/osd-response.json | jq -r '.status.overall.state')" >> $GITHUB_ENV
- name: Step 2 - Run Functional Test For OSD
Expand Down

0 comments on commit fd854ca

Please sign in to comment.