Skip to content

qa: rbd_mirror_fsx_compare.sh doesn't error out as expected - #67629

Merged
idryomov merged 3 commits into
ceph:mainfrom
idryomov:wip-75239
Mar 4, 2026
Merged

idryomov merged 3 commits into
ceph:mainfrom
idryomov:wip-75239

Conversation

@idryomov

@idryomov idryomov commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

idryomov added 3 commits March 3, 2026 11:39
In mirror-thrash tests, one of the clusters can be effectively stopped
due to a watchdog bark while rbd_mirror_fsx_compare.sh is running and is
in the middle of the "wait for all images" loop:

2026-03-01T12:55:35.059 INFO:tasks.workunit.cluster1.client.mirror.trial055.stderr:+ retrying_seconds=1040
2026-03-01T12:55:35.060 INFO:tasks.workunit.cluster1.client.mirror.trial055.stderr:+ '[' 1040 -le 7200 ']'
2026-03-01T12:55:35.060 INFO:tasks.workunit.cluster1.client.mirror.trial055.stderr:++ rbd --cluster cluster2 --pool mirror ls
2026-03-01T12:55:35.060 INFO:tasks.workunit.cluster1.client.mirror.trial055.stderr:++ wc -l
2026-03-01T12:55:35.084 INFO:tasks.workunit.cluster1.client.mirror.trial055.stderr:+ '[' 290 -ge 292 ']'
2026-03-01T12:55:35.084 INFO:tasks.workunit.cluster1.client.mirror.trial055.stderr:+ sleep 10
...
2026-03-01T12:55:49.568 INFO:tasks.daemonwatchdog.daemon_watchdog:thrasher.rbd_mirror.[cluster2] failed
2026-03-01T12:55:49.568 INFO:tasks.daemonwatchdog.daemon_watchdog:BARK! unmounting mounts and killing all daemons

In this scenario "rbd ls" is going to time out repeatedly, turning the
loop into up to a ~60-hour sleep (up to 720 iterations with a 5-minute
timeout + 10-second sleep per iteration).

Fixes: https://tracker.ceph.com/issues/75239
Signed-off-by: Ilya Dryomov <[email protected]>
In mirror-thrash tests, status() can be invoked after one of the
clusters is effectively stopped due to a watchdog bark:

2026-03-01T22:27:38.633 INFO:tasks.daemonwatchdog.daemon_watchdog:thrasher.rbd_mirror.[cluster2] failed
2026-03-01T22:27:38.633 INFO:tasks.daemonwatchdog.daemon_watchdog:BARK! unmounting mounts and killing all daemons
...
2026-03-01T22:32:46.964 INFO:tasks.workunit.cluster1.client.mirror.trial199.stderr:+ status
2026-03-01T22:32:46.964 INFO:tasks.workunit.cluster1.client.mirror.trial199.stderr:+ local cluster daemon image_pool image_ns image
2026-03-01T22:32:46.964 INFO:tasks.workunit.cluster1.client.mirror.trial199.stderr:+ for cluster in ${CLUSTER1} ${CLUSTER2}

In this scenario all commands that are invoked from the loop body
are going to time out anyway.

Signed-off-by: Ilya Dryomov <[email protected]>
It was missed in commit 5fe64fa ("qa: rbd_mirror.sh: change
parameters to cluster rather than daemon name").

Signed-off-by: Ilya Dryomov <[email protected]>
@idryomov
idryomov requested a review from a team as a code owner March 3, 2026 10:45
@idryomov

idryomov commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

@idryomov

idryomov commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

An example of rbd_mirror_fsx_compare.sh erroring out:

2026-03-04T10:04:50.364 INFO:tasks.daemonwatchdog.daemon_watchdog:thrasher.rbd_mirror.[cluster2] failed
2026-03-04T10:04:50.364 INFO:tasks.daemonwatchdog.daemon_watchdog:BARK! unmounting mounts and killing all daemons
...
2026-03-04T10:05:00.114 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:+ retrying_seconds=830
2026-03-04T10:05:00.114 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:+ '[' 830 -le 7200 ']'
2026-03-04T10:05:00.115 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:++ rbd --cluster cluster2 --pool mirror ls
2026-03-04T10:05:00.115 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:++ wc -l
...
2026-03-04T10:10:00.132 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:rbd: couldn't connect to the cluster!
2026-03-04T10:10:00.133 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:rbd: listing images failed: (110) Connection timed out
...
2026-03-04T10:10:39.330 INFO:tasks.workunit.cluster1.client.mirror.trial180.stdout:cluster2 status
2026-03-04T10:10:39.331 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:+ echo 'cluster2 status'
2026-03-04T10:10:39.331 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:+ CEPH_ARGS=
2026-03-04T10:10:39.331 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:+ ceph --cluster cluster2 -s
...
2026-03-04T10:15:39.370 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:2026-03-04T10:15:39.369+0000 7f9d557a5640  0 monclient(hunting): authenticate timed out after 300
2026-03-04T10:15:39.371 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:[errno 110] RADOS timed out (error connecting to the cluster)
2026-03-04T10:15:39.374 INFO:tasks.workunit.cluster1.client.mirror.trial180.stderr:+ continue

@idryomov
idryomov merged commit 6b396c8 into ceph:main Mar 4, 2026
7 checks passed
@idryomov
idryomov deleted the wip-75239 branch March 4, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants