Repository navigation
squid: qa: Add tests to validate synced images on rbd-mirror - #55761
Merged
Merged
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)
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)
Contributor
|
jenkins test make check |
idryomov
approved these changes
Feb 27, 2024
Contributor
|
jenkins test make check |
4 of 14 tasks
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)
idryomov
approved these changes
Mar 11, 2024
Contributor
|
jenkins test make check |
Contributor
afreen23
pushed a commit
to rhcs-dashboard/ceph
that referenced
this pull request
Jul 29, 2026
squid: qa: Add tests to validate synced images on rbd-mirror Reviewed-by: Ilya Dryomov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/64553
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