Repository navigation
quincy: qa/workunits/rbd: avoid caching effects in luks-encryption.sh - #58852
Merged
Merged
Conversation
This commit fixes 2 issues in luks-encryption.sh: 1. Fix sporadic comparison failures due to stale data read from kernel buffer cache. 2. Fix test skipping condition (when journaling is enabled) Additionally, sudo is removed from most commands. Signed-off-by: Or Ozeri <[email protected]> (cherry picked from commit 40f6f52)
Commit 40f6f52 ("qa/workunits/rbd: fix issues in luks-encryption.sh") did the right thing for reads, which solved most of the issue. However, it actually made a step in the opposite direction for writes -- depending on the RBD cache settings, rbd-nbd virtual devices can behave as physical devices with a volatile write cache, so fsync is required. While at it, involving O_DIRECT for reads isn't needed outside of test_encryption_format(). Fixes: https://tracker.ceph.com/issues/67051 Signed-off-by: Ilya Dryomov <[email protected]> (cherry picked from commit 9e1c034) Conflicts: qa/workunits/rbd/luks-encryption.sh [ commit 1d3de19 ("tools/rbd: add encryption format support for cloned image") not in quincy ]
Contributor
|
The cherry-pick commit that wasn't in the original PR (#58688) seems fine to me. Approving since the cherry-picks looks good |
ajarr
approved these changes
Jul 25, 2024
Contributor
Author
|
jenkins test make check |
trociny
approved these changes
Jul 26, 2024
Contributor
|
jenkins test make check |
Contributor
|
@idryomov pls merge when checks passed |
4 of 14 tasks
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/67059
backport of #58688 (with prerequisite commit from #40363)
parent tracker: https://tracker.ceph.com/issues/67051