Skip to content

quincy: qa/workunits/rbd: avoid caching effects in luks-encryption.sh - #58852

Merged
idryomov merged 2 commits into
ceph:quincyfrom
idryomov:wip-67051-quincy
Aug 1, 2024
Merged

idryomov merged 2 commits into
ceph:quincyfrom
idryomov:wip-67051-quincy

Conversation

@idryomov

@idryomov idryomov commented Jul 25, 2024 •

Copy link
Copy Markdown
Contributor

orozery and others added 2 commits July 25, 2024 15:39
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 ]
@idryomov idryomov added this to the v17.2.8 milestone Jul 25, 2024
@idryomov
idryomov requested a review from a team as a code owner July 25, 2024 14:00
@ajarr

ajarr commented Jul 25, 2024

Copy link
Copy Markdown
Contributor

The cherry-pick commit that wasn't in the original PR (#58688) seems fine to me. Approving since the cherry-picks looks good

@idryomov

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@yuriw

yuriw commented Aug 1, 2024

Copy link
Copy Markdown
Contributor

jenkins test make check

@yuriw

yuriw commented Aug 1, 2024

Copy link
Copy Markdown
Contributor

@idryomov
idryomov merged commit 85224d9 into ceph:quincy Aug 1, 2024
@idryomov
idryomov deleted the wip-67051-quincy branch August 1, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants