]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: adding logic to wait for rgw realm tokens before testing 50237/head
authorRedouane Kachach <rkachach@redhat.com>
Fri, 24 Mar 2023 14:59:10 +0000 (15:59 +0100)
committerRedouane Kachach <rkachach@redhat.com>
Fri, 24 Mar 2023 14:59:10 +0000 (15:59 +0100)
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
qa/suites/orch/cephadm/workunits/task/test_rgw_multisite.yaml

index 031aeb6695df6f193daf2b310aebfe60841bae51..976e3730ce320a3fca65f8436a4eadedec7fa6f3 100644 (file)
@@ -28,6 +28,7 @@ tasks:
       - |
         set -e
         set -x
+        while true; do TOKEN=$(ceph rgw realm tokens | jq -r '.[0].token'); echo $TOKEN; if [ "$TOKEN" != "master zone has no endpoint" ]; then break; fi; sleep 5; done
         TOKENS=$(ceph rgw realm tokens)
         echo $TOKENS | jq --exit-status '.[0].realm == "myrealm1"'
         echo $TOKENS | jq --exit-status '.[0].token'