Project

General

Profile

Actions

Bug #58688

closed

[test] rbd_mirror_bootstrap.sh "rx-only direction" test fails sporadically

Added by Ilya Dryomov over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
pacific,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

2023-02-03T16:44:22.394 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:+ testlog 'TEST: verify rx-only direction'
2023-02-03T16:44:22.394 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:+ tee -a /tmp/tmp.Sw6UgKwrMO/rbd-mirror.test.log
2023-02-03T16:44:22.394 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:++ date '+%F %T'
2023-02-03T16:44:22.395 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:+ echo 2023-02-03 16:44:22 TEST: verify rx-only direction
2023-02-03T16:44:22.395 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:2023-02-03 16:44:22 TEST: verify rx-only direction
2023-02-03T16:44:22.396 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:++ rbd --cluster cluster1 --pool mirror mirror pool info --format xml
2023-02-03T16:44:22.396 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:++ xmlstarlet sel -t -v '//mirror/peers/peer[1]/uuid'
2023-02-03T16:44:22.646 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:+ '[' 7ad335f8-e1e5-4f94-9a1c-af5f4ffecf35 = '' ']'
2023-02-03T16:44:22.647 INFO:tasks.workunit.cluster1.client.mirror.smithi129.stderr:+ cleanup 1
start_mirrors ${CLUSTER1}
start_mirrors ${CLUSTER2}

testlog "TEST: verify rx-only direction" 
[ "$(rbd --cluster ${CLUSTER1} --pool ${POOL} mirror pool info --format xml |
        ${XMLSTARLET} sel -t -v  '//mirror/peers/peer[1]/uuid')" = "" ]

The test appears to be bogus since a tx-only peer is expected to show up after the remote rbd-mirror daemon pings the local cluster.

http://qa-proxy.ceph.com/teuthology/yuriw-2023-02-02_19:30:20-rbd-wip-yuri6-testing-2023-01-26-0941-distro-default-smithi/7145909/teuthology.log


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #58704: quincy: [test] rbd_mirror_bootstrap.sh "rx-only direction" test fails sporadicallyResolvedIlya DryomovActions
Copied to rbd - Backport #58705: pacific: [test] rbd_mirror_bootstrap.sh "rx-only direction" test fails sporadicallyResolvedIlya DryomovActions
Actions #1

Updated by Ilya Dryomov over 1 year ago

Doesn't easily reproduce:

https://pulpito.ceph.com/dis-2023-02-09_17:31:37-rbd-main-distro-default-smithi/
https://pulpito.ceph.com/dis-2023-02-09_17:33:49-rbd-main-distro-default-smithi/

I'm think the reason it passes most of the time is because

${XMLSTARLET} sel -t -v  '//mirror/peers/peer[1]/uuid'
just fails and the wrongly expected empty string is produced out of thin air ("set -e" doesn't pick up such command substitution failures).

Actions #2

Updated by Ilya Dryomov over 1 year ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 50071
Actions #3

Updated by Ilya Dryomov over 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Backport Bot over 1 year ago

  • Copied to Backport #58704: quincy: [test] rbd_mirror_bootstrap.sh "rx-only direction" test fails sporadically added
Actions #5

Updated by Backport Bot over 1 year ago

  • Copied to Backport #58705: pacific: [test] rbd_mirror_bootstrap.sh "rx-only direction" test fails sporadically added
Actions #6

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #7

Updated by Backport Bot about 1 year ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF