ci: retry s3cmd bucket creation in rgw-mutisite test
The rgw-multisite job is failing frequently. Observed
"connectionRefusedERror: connection Refused" on the s3cmd mb call. It
might be happening because CephObjectSTore CR is ready but RGW gateway
is not fully accepting TCP connections.
This PR wraps s3cmd mb and s3cmd put calls in a retry loop that
will attempt each command up to 3 times with a 5 second sleep between
attemps. This might help fix the flaky CI test.
Signed-off-by: Santosh <sapillai@redhat.com>
(cherry picked from commit 2cc51e8eb0)
This commit is contained in:
1 parent
64f17f691b
commit
09bb1c39c1
2 files changed
+17
-2
No files matched your search
@@ -1924,6 +1924,9 @@ jobs:
|
||||
run: |
|
||||
tests/scripts/github-action-helper.sh wait_for cephcluster my-cluster rook-ceph
|
||||
tests/scripts/github-action-helper.sh wait_for cephcluster my-cluster rook-ceph-secondary
|
||||
# wait for the RGW deployments to be ready to serve traffic
|
||||
kubectl -n rook-ceph wait --for=condition=available deployment/rook-ceph-rgw-multisite-store-a --timeout=300s
|
||||
kubectl -n rook-ceph-secondary wait --for=condition=available deployment/rook-ceph-rgw-zone-b-multisite-store-a --timeout=300s
|
||||
|
||||
- name: write an object to one cluster, read from the other
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
|
||||
Reference in new issue
Block a user