]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephadm: wait a bit before checking rgw daemons upgraded w/ `ceph versions` 59470/head
authorAdam King <adking@redhat.com>
Tue, 27 Aug 2024 21:24:44 +0000 (17:24 -0400)
committerAdam King <adking@redhat.com>
Mon, 23 Sep 2024 15:31:04 +0000 (11:31 -0400)
As this seems to take a little bit to be updated and the tests end
up failing despite the rgw daemons actually being upgraded successfully

Fixes: https://tracker.ceph.com/issues/67758
Signed-off-by: Adam King <adking@redhat.com>
qa/suites/orch/cephadm/upgrade/3-upgrade/staggered.yaml

index 0080d3bf7306fcf11465a01eef0488f05cdf1839..c6bec08284301b547c9482de4705e217bb0ca94e 100644 (file)
@@ -131,8 +131,10 @@ tasks:
       - ceph orch upgrade start --image quay.ceph.io/ceph-ci/ceph:$sha1 --services rgw.foo
       - while ceph orch upgrade status | jq '.in_progress' | grep true && ! ceph orch upgrade status | jq '.message' | grep Error ; do ceph orch ps ; ceph versions ; ceph orch upgrade status ; sleep 30 ; done
       - ceph orch ps
+      - ceph versions
       # verify all rgw daemons on same version and version hash matches what we are upgrading to
-      - ceph versions | jq -e '.rgw | length == 1'
+      # `ceph versions` might not get updated immediately for rgw so retry this
+      - time timeout 60 bash -c "until ceph versions | jq -e '.rgw | length == 1'; do sleep 2; done"
       - ceph versions | jq -e '.rgw | keys' | grep $sha1
       - ceph orch upgrade status
       - ceph health detail