Skip to content

Commit fd854ca

Browse files
authoredDec 19, 2022
add retry when checking if OSD is up with 30s delay (#134)
Signed-off-by: Lu Yu <nluyu@amazon.com> Signed-off-by: Lu Yu <nluyu@amazon.com>
1 parent 45319c6 commit fd854ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.github/workflows/functional-test-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Step 1 - Check If OSD is Up
3131
run: |
3232
sleep 30s
33-
curl -XGET -k -u '${{secrets.osd-user}}:${{secrets.osd-user-password}}' '${{inputs.endpoint}}/api/status' > $HOME/osd-response.json
33+
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
3434
echo "OSD_STATUS=$(cat $HOME/osd-response.json | jq -r '.status.overall.state')" >> $GITHUB_ENV
3535
3636
- name: Step 2 - Run Functional Test For OSD

0 commit comments

Comments
 (0)
Please sign in to comment.