Skip to content

Commit fb02706

Browse files
authored
Merge pull request ceph#59470 from adk3798/cephadm-staggered-upgrade-test-wait-check-rgw-versions
qa/cephadm: wait a bit before checking rgw daemons upgraded w/ `ceph versions` Reviewed-by: Guillaume Abrioux <[email protected]>
2 parents b2b211e + b9f63e1 commit fb02706

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qa/suites/orch/cephadm/upgrade/3-upgrade/staggered.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ tasks:
131131
- ceph orch upgrade start --image quay.ceph.io/ceph-ci/ceph:$sha1 --services rgw.foo
132132
- 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
133133
- ceph orch ps
134+
- ceph versions
134135
# verify all rgw daemons on same version and version hash matches what we are upgrading to
135-
- ceph versions | jq -e '.rgw | length == 1'
136+
# `ceph versions` might not get updated immediately for rgw so retry this
137+
- time timeout 60 bash -c "until ceph versions | jq -e '.rgw | length == 1'; do sleep 2; done"
136138
- ceph versions | jq -e '.rgw | keys' | grep $sha1
137139
- ceph orch upgrade status
138140
- ceph health detail

0 commit comments

Comments
 (0)