]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/suites/rbd: fix sporadic "rx-only direction" test failures 50113/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 10 Feb 2023 12:56:57 +0000 (13:56 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 14 Feb 2023 14:48:15 +0000 (15:48 +0100)
commitb96d37e6a8e79805a17f1cfcfab24a1efb8bd3a2
treed30459dc4d7d4936edbedd87480aae1b33bdcc61
parent409034255a98e46b7d896a93c335b11a7a7f9e9e
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>
(cherry picked from commit 5cec2670be569ac9161743dec84f139b9e529d07)
qa/workunits/rbd/rbd_mirror_bootstrap.sh