]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: adding logic to wait for rgw realm tokens before testing 50887/head
authorRedouane Kachach <rkachach@redhat.com>
Fri, 24 Mar 2023 14:59:10 +0000 (15:59 +0100)
committerAdam King <adking@redhat.com>
Wed, 5 Apr 2023 17:35:56 +0000 (13:35 -0400)
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit b431e308a747afa7fa8c1852ba7a375c4e0f1867)

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'