Repository navigation
quincy: qa: Add tests to validate synced images on rbd-mirror - #55763
Conversation
In rbd_mirror_helpers.sh, the `wait_for_status_in_pool_dir()` helper stored `mirror image status` and `mirror pool status` command outputs in files that could be shared over successive calls or calls from multiple threads. Instead store the command outputs in local variables to make `wait_for_status_in_pool_dir()` reentrant. Signed-off-by: Ramana Raja <[email protected]> (cherry picked from commit ea3a567)
|
jenkins test make check |
|
@ajarr pls merge when all checks passed |
|
@yuriw Could you please link an RBD suite run where this PR was included? |
idryomov
left a comment
There was a problem hiding this comment.
Conflicts:
qa/workunits/rbd/rbd_mirror_journal.sh
- Commit ajarr@3fd8a03 not backported
"qa/workunits/rbd: merge journal and snapshot test scripts"
@ajarr The resolution turns out to be incomplete. This commit also introduced wait_for_replaying_status_in_pool_dir() which is used in compare_mirror_images.sh. Need to replace that with a call to wait_for_status_in_pool_dir() and spell out the status.
Introduce functional tests to validate that the images under workloads are correctly mirrored between two clusters using snapshot based mirroring. Run workload on a primary image using a krbd or nbd client. Take mirror snapshots of the image under workload. Unmount the mapped image and calculate its MD5 checksum before demoting it. After demotion, wait for the mirror status of the image to be 'up+unknown' in both the clusters. This is to make sure that the non-primary image in the other cluster is ready to be promoted. Now promote the non-primary image in the other cluster. Map the promoted image and calculate its MD5 checksum. Verify that the checksums of the demoted and promoted images in the two clusters are the same. The above test is run as part of two different workunits: - a workunit that validates the syncing of multiple mirrored images with workloads running on them - another workunit that validates the syncing of a single mirrored image with workload running on it and the image is set as primary alternatively between the two clusters, as it happens during failover and failback scenarios. Fixes: https://tracker.ceph.com/issues/61617 Signed-off-by: Ramana Raja <[email protected]> Co-authored-by: Ilya Dryomov <[email protected]> Co-authored-by: Christopher Hoffman <[email protected]> (cherry picked from commit b7aae5c) Cherry-pick notes: - In qa/workunits/rbd/compare_mirror_images.sh, replace `wait_for_replaying_status_in_pool_dir` with `wait_for_status_in_pool_dir` Commit 3fd8a03 that added `wait_for_replaying_status_in_pool_dir` not backported
By making use of here strings in commit ea3a567 ("qa/workunits: make wait_for_status_in_pool_dir() reentrant") we grew a dependency on bash. Signed-off-by: Ilya Dryomov <[email protected]> (cherry picked from commit 166a236) Signed-off-by: Ramana Raja <[email protected]> Conflicts: qa/workunits/rbd/rbd_mirror_journal.sh - Commit 3fd8a03 not backported "qa/workunits/rbd: merge journal and snapshot test scripts"
Oops! Fixed now |
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
backport tracker: https://tracker.ceph.com/issues/64555
backport of #54802 and #56077
parent tracker: https://tracker.ceph.com/issues/61617
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh