]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: adjust for MDSs to get deployed before verifying their availability 44639/head
authorVenky Shankar <vshankar@redhat.com>
Tue, 11 Jan 2022 09:05:03 +0000 (14:35 +0530)
committerVenky Shankar <vshankar@redhat.com>
Tue, 18 Jan 2022 12:41:35 +0000 (07:41 -0500)
The check happens when some MDSs are *just* deployed by cephadm causing
jobs to fail with:

     Command failed on smithi016 with status 1: 'sudo /home/ubuntu/cephtest/cephadm \
     --image docker.io/ceph/ceph:v16.2.4 shell -c /etc/ceph/ceph.conf -k \
     /etc/ceph/ceph.client.admin.keyring --fsid 403bfcae-706b-11ec-8c32-001a4aab830c \
     -- bash -c \'ceph --format=json mds versions | jq -e ". | add == 4"\''

Fixes: http://tracker.ceph.com/issues/53857
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 8939d8c14b911e8f57a46c442e31185ce3ca5d63)

qa/suites/fs/upgrade/mds_upgrade_sequence/tasks/1-volume/3-verify.yaml

index ec2a2a54f29de1c806e7b6c1d225d83a38fccf4d..e71365ad113c9c94ff98a39ee0bdcacf0ee74a73 100644 (file)
@@ -3,5 +3,5 @@ tasks:
     host.a:
       - ceph fs dump
       - ceph --format=json fs dump | jq -e ".filesystems | length == 1"
-      - ceph --format=json mds versions | jq -e ". | add == 4"
+      - while ! ceph --format=json mds versions | jq -e ". | add == 4"; do sleep 1; done
 - fs.pre_upgrade_save: