Tasks #73347
closeddirect_io.py fails
0%
Description
2025-09-23T20:52:43.652 INFO:tasks.workunit.client.0.smithi059.stderr:Traceback (most recent call last):
2025-09-23T20:52:43.652 INFO:tasks.workunit.client.0.smithi059.stderr: File "/home/ubuntu/cephtest/clone.client.0/qa/workunits/fs/misc/direct_io.py", line 42, in <module>
2025-09-23T20:52:43.652 INFO:tasks.workunit.client.0.smithi059.stderr: main()
2025-09-23T20:52:43.652 INFO:tasks.workunit.client.0.smithi059.stderr: File "/home/ubuntu/cephtest/clone.client.0/qa/workunits/fs/misc/direct_io.py", line 25, in main
2025-09-23T20:52:43.652 INFO:tasks.workunit.client.0.smithi059.stderr: raise RuntimeError("data were not written to object store directly")
2025-09-23T20:52:43.653 INFO:tasks.workunit.client.0.smithi059.stderr:RuntimeError: data were not written to object store directly
CH Updated by Christopher Hoffman about 1 year ago
- Parent task deleted (
#63293)
Test fails when running with-fscrypt-dummy in userspace.
CH Updated by Christopher Hoffman about 1 year ago
- Related to Tasks #63293: Implement fscrypt in libcephfs and cephfs-fuse added
VS Updated by Venky Shankar 12 months ago
- Tags set to fscrypt
BH Updated by Brad Hubbard 10 months ago
$ find /teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial -name teuthology.log -print -exec grep "data were
not written to object store directly" {} \;
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44610/teuthology.log
2026-02-11T07:26:39.054 INFO:tasks.workunit.client.0.trial026.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T07:26:39.054 INFO:tasks.workunit.client.0.trial026.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44609/teuthology.log
2026-02-11T07:18:24.880 INFO:tasks.workunit.client.0.trial031.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T07:18:24.880 INFO:tasks.workunit.client.0.trial031.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44614/teuthology.log
2026-02-11T08:16:23.536 INFO:tasks.workunit.client.0.trial026.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T08:16:23.536 INFO:tasks.workunit.client.0.trial026.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44607/teuthology.log
2026-02-11T06:41:14.579 INFO:tasks.workunit.client.0.trial026.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T06:41:14.580 INFO:tasks.workunit.client.0.trial026.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44613/teuthology.log
2026-02-11T07:56:16.972 INFO:tasks.workunit.client.0.trial026.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T07:56:16.972 INFO:tasks.workunit.client.0.trial026.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44615/teuthology.log
2026-02-11T08:20:45.920 INFO:tasks.workunit.client.0.trial031.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T08:20:45.920 INFO:tasks.workunit.client.0.trial031.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44612/teuthology.log
2026-02-11T07:50:52.950 INFO:tasks.workunit.client.0.trial031.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T07:50:52.951 INFO:tasks.workunit.client.0.trial031.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44616/teuthology.log
2026-02-11T08:35:57.089 INFO:tasks.workunit.client.0.trial031.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T08:35:57.089 INFO:tasks.workunit.client.0.trial031.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44611/teuthology.log
2026-02-11T07:35:24.173 INFO:tasks.workunit.client.0.trial031.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T07:35:24.173 INFO:tasks.workunit.client.0.trial031.stderr:RuntimeError: data were not written to object store directly
/teuthology/bhubbard-2026-02-11_01:20:08-fs:workload-main-distro-default-trial/44608/teuthology.log
2026-02-11T06:56:59.358 INFO:tasks.workunit.client.0.trial026.stderr: raise RuntimeError("data were not written to object store directly")
2026-02-11T06:56:59.358 INFO:tasks.workunit.client.0.trial026.stderr:RuntimeError: data were not written to object store directly
VS Updated by Venky Shankar 9 months ago
Christopher Hoffman wrote in #note-1:
Test fails when running with-fscrypt-dummy in userspace.
Seems to me that it does not fail every time. See: https://pulpito.ceph.com/vshankar-2026-02-26_08:18:54-fs-wip-vshankar-testing-20260226.041846-testing-default-trial/71495/
... which is using with-fscrypt-dummy.
tasks/{0-fscrypt/{with-fscrypt-dummy} 0-subvolume/{with-quota} 0-use-snaprealm/{global} 1-check-counter 2-scrub/yes 3-snaps/yes 4-flush/yes 5-quiesce/with-quiesce 6-workunit/fs/misc}}
CH Updated by Christopher Hoffman 8 months ago
Seems to me that it does not fail every time
This is because it uses kclient in this test. The with-fscrypt-dummy.yaml fragment sets client_fscrypt_dummy_encryption = true which is a config only used in userspace. That would cause this test case to run on non-encrypted code path. The kclient has a corresponding one too called "test_dummy_encryption". The question is do we want to commit to turning this on at this time?
CH Updated by Christopher Hoffman 8 months ago
- Status changed from New to In Progress
CH Updated by Christopher Hoffman 8 months ago ยท Edited
The root cause for this:
1. Write 1 to fscrypt file
2. Read object
3. Compare 2 vs 1. This fails due to comparing encrypted vs decrypted form
Then another check in that file should fail:
4. Write decrypted version to object
5. Read file through libcephfs, it will produce a transformed version of decryption of number 4.
Some approaches we can take (only for fscrypt case):
For this test, we're going to use the underlying fscrypt libraries to transform data. For writes we will use file "file_in" where we write plain text via file and be able to read back encrypted version via object. Then we will use object_in where we will write encrypted data to the object and read the plain text back via file.
We should continue to do the regular checks for non-fscrypt case to ensure we get the contents we expect.
CH Updated by Christopher Hoffman 8 months ago
- Pull request ID set to 68482
CH Updated by Christopher Hoffman 8 months ago
Teuthology run showing the approach passes: https://pulpito.ceph.com/choffman-2026-04-20_17:51:09-fs:workload-main-distro-default-trial/
CH Updated by Christopher Hoffman 8 months ago
- Status changed from In Progress to Fix Under Review
VS Updated by Venky Shankar 7 months ago
- Labels (FS) fscrypt added
UB Updated by Upkeep Bot 5 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to 9be97d7cdece85ab935e5f06b39ed98c924876ce
- Fixed In set to v21.3.0-340-g9be97d7cde
- Upkeep Timestamp set to 2026-06-23T13:06:24+00:00
KH Updated by Kotresh Hiremath Ravishankar 5 months ago
@Christopher Hoffman @Venky Shankar I think this needs to be back ported to release branches.
CH Updated by Christopher Hoffman 5 months ago
Kotresh Hiremath Ravishankar wrote in #note-14:
@Christopher Hoffman @Venky Shankar I think this needs to be back ported to release branches.
Yeah this is missing in umbrella.
CH Updated by Christopher Hoffman 5 months ago
When attempting to change properties, I don't see an option / section for Backport. @Venky Shankar , can walk me through how to set it or can you set it for me?