]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/suites/rbd: fix sporadic "rx-only direction" test failures 50071/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 10 Feb 2023 12:56:57 +0000 (13:56 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 10 Feb 2023 14:26:27 +0000 (15:26 +0100)
commit5cec2670be569ac9161743dec84f139b9e529d07
treed5650866cdb722bfeb6beca1ac9a1e6fc7fa4dcd
parent1e8aa0c17d184ee6d46c6533579156ac8baaa534
qa/suites/rbd: fix sporadic "rx-only direction" test failures

The existing

    xmlstarlet sel -t -v  '//mirror/peers/peer[1]/uuid')" = ""

test is bogus since a tx-only peer gets added after the remote
rbd-mirror daemon pings the local cluster.  It happened to pass most
of the time because xmlstarlet filter just failed on an empty peers
array, producing the wrongly expected empty string by accident.

Fixes: https://tracker.ceph.com/issues/58688
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/workunits/rbd/rbd_mirror_bootstrap.sh