Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa: switch to use the merge fragment for fscrypt #50728

Merged
merged 3 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions qa/suites/fs/fscrypt/mount
1 change: 0 additions & 1 deletion qa/suites/fs/fscrypt/mount/.qa

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/fs/fscrypt/mount/kclient/.qa

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/fs/fscrypt/mount/kclient/mount-syntax/.qa

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/fs/fscrypt/mount/kclient/mount-syntax/v1.yaml

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/fs/fscrypt/mount/kclient/mount.yaml

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion qa/suites/fs/fscrypt/mount/kclient/overrides/.qa

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/fs/fscrypt/mount/kclient/overrides/distro/.qa

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
7 changes: 7 additions & 0 deletions qa/suites/fs/fscrypt/tasks/0-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
teuthology:
postmerge:
# Once can we make sure the distro kernels have included the fscrypt feature
# or the ceph-fuse have supported the fscrypt feature we can remove this
# restriction.
Comment on lines +3 to +5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will have to keep track on this right whether and when this feature is added to distro kernels and/or ceph-fuse?

Copy link
Member Author

@lxbsz lxbsz Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this comment just as Patrick mentioned in the previous PR, just to make it clear why we add this restriction here and in which case we can remove it. But couldn't foresee when.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, i mean once the distro kernels/ceph-fuse are capable of fscrypt then we need to change it here and also here https://github.com/ceph/ceph/pull/48183/files#diff-63be9c532a24d81b6391bb01e3d994eef8eb6a948154c227164063e6acd592f7R3-R7. So it would be better that we note it down somewhere, or better way is to link these two in the fscrypt feature PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just linked this to the fscrypt feature PR #50728. Thanks.

- if not is_kupstream() then reject() end
task:
17 changes: 0 additions & 17 deletions qa/tasks/cephfs/test_fscrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,7 @@ class TestFscrypt(XFSTestsDev):
def setup_xfsprogs_devs(self):
self.install_xfsprogs = True

def require_kernel_mount(self):
from tasks.cephfs.fuse_mount import FuseMount
from tasks.cephfs.kernel_mount import KernelMount

# TODO: make xfstests-dev compatible with ceph-fuse. xfstests-dev
# remounts CephFS before running tests using kernel, so ceph-fuse
# mounts are never actually tested.
if isinstance(self.mount_a, FuseMount):
self.skipTest('Requires kernel client; xfstests-dev not '\
'compatible with ceph-fuse ATM.')
elif isinstance(self.mount_a, KernelMount):
log.info('client is kernel mounted')

def test_fscrypt_encrypt(self):
self.require_kernel_mount()

# XXX: check_status is set to False so that we can check for command's
# failure on our own (since this command doesn't set right error code
# and error message in some cases) and print custom log messages
Expand All @@ -51,8 +36,6 @@ def test_fscrypt_encrypt(self):
self.assertIn('Passed all 26 tests', stdout)

def test_fscrypt_dummy_encryption_with_quick_group(self):
self.require_kernel_mount()

self.write_local_config('test_dummy_encryption')

# XXX: check_status is set to False so that we can check for command's
Expand Down