Repository navigation
qa: Add tests to validate synced images on rbd-mirror - #54802
Conversation
ff37a75 to
e6e181f
Compare
340dbf4 to
e2ffa60
Compare
|
jenkins test make check |
|
Multiple runs of rbd-mirror-snapshot-workunit-compare-mirror-images-nbd, which used to failed before using |
idryomov
left a comment
There was a problem hiding this comment.
Pretty much all comments on compare_mirror_image_alternate_primary.sh apply to compare_mirror_images.sh too. I didn't duplicate them there.
|
And missed to update the commit message |
|
Tests run against
|
|
Tests running against the branch with data corruption fixes in librbd reverted. Failed runs with MD5 mistmatches only for tests using nbd, i.e., librbd clients. compare-mirror-image-{krbd,nbd} workloads compare-mirror-image-alternate-primary-{krbd,nbd} workloads |
|
Tests running on main branch with custom kernel that reverted data corruption fixes in krbd. I expect to see only the krbd workloads failing with MD5 mismatch errors. compare-mirror-image-{krbd,nbd} workloads compare-mirror-image-alternate-primary-{krbd,nbd} workloads Note: |
|
Note to the reviewer:
|
|
jenkins test make check |
|
jenkins test api |
|
Test runs on the latest patchset on 'main' branch Since last patchset,
|
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]>
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]>
|
LGTM! Could you please schedule 10 jobs of each type against bad builds, just in case? |
|
More runs on 'main'. The runs in the two links should pass. Runs on 'main' using kernel build (wip-revert-exclusive-lock-snapc), that has the data corruption fixes reverted. krbd test runs in the links should fail with MD5 mismatch errors. |
Please schedule the same for a librbd build with reverts for completeness. |
Yes, I did try to do it with old build. It looks like I need a new build as some packages are missing. I've initiated the new build. |
Yup, IIRC builds expire after two weeks. |
|
Had some trouble trying to make the new builds with librbd corruption fixes reverted. In the following runs you should see that the nbd (librbd) jobs failed. @idryomov let me know what if you need any other testing done |
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:
with workloads running on them
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]
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e