Actions
Bug #54258
closedqa/workunits/rbd/rbd_mirror_stress.sh: rbd: mirroring not enabled on the image
% Done:
0%
Source:
Tags:
Backport:
octopus,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
rbd_mirror_stress.sh sporadically fails on master like in this case:
2022-02-11T11:01:18.039 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:+ CEPH_ARGS= rbd --cluster cluster1 mirror image status mirror/test 2022-02-11T11:01:18.040 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:+ tee /tmp/tmp.XK426RdY94/cluster1-mirror-test.mirror_status 2022-02-11T11:01:18.095 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:rbd: mirroring not enabled on the image 2022-02-11T11:01:18.104 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:+ grep ^ state: .*up+replaying /tmp/tmp.XK426RdY94/cluster1-mirror-test.mirror_status 2022-02-11T11:01:18.106 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:+ return 1 2022-02-11T11:01:18.107 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:+ return 1 2022-02-11T11:01:18.107 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:+ cleanup 1
I.e. the test tries to to get the mirroring non-primary image status and can't find the status (in cluster1).
And when we look at the test diagnostic output, we see for "mirror status" in cluster1:
2022-02-11T11:01:19.467 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout:test: 2022-02-11T11:01:19.467 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: global_id: c7006e3b-7e00-4cf0-bb62-e0bad69b2003 2022-02-11T11:01:19.467 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: state: down+unknown 2022-02-11T11:01:19.467 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: description: status not found 2022-02-11T11:01:19.468 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: last_update: 2022-02-11T11:01:19.468 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: peer_sites: 2022-02-11T11:01:19.468 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: name: cluster2 2022-02-11T11:01:19.468 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: state: down+unknown 2022-02-11T11:01:19.468 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: description: status not found 2022-02-11T11:01:19.469 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: last_update: 2022-02-11T11:01:19.471 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stderr:+ echo
While in cluster2 it is as expected:
2022-02-11T11:01:22.497 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout:test: 2022-02-11T11:01:22.497 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: global_id: c7006e3b-7e00-4cf0-bb62-e0bad69b2003 2022-02-11T11:01:22.498 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: state: up+stopped 2022-02-11T11:01:22.498 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: description: local image is primary 2022-02-11T11:01:22.498 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: service: mirror.0 on smithi106 2022-02-11T11:01:22.498 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: last_update: 2022-02-11 11:01:16 2022-02-11T11:01:22.499 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: peer_sites: 2022-02-11T11:01:22.499 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: name: cluster1 2022-02-11T11:01:22.499 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: state: up+replaying 2022-02-11T11:01:22.499 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: description: replaying, {"bytes_per_second":0.0,"bytes_per_snapshot":0.0,"remote_snapshot_timestamp":1644577159,"replay_state":"idle"} 2022-02-11T11:01:22.500 INFO:tasks.workunit.cluster1.client.mirror.smithi106.stdout: last_update: 2022-02-11 11:01:16
Actions