Project

General

Profile

Actions

Tasks #73347

closed
CH CH

direct_io.py fails

Tasks #73347: direct_io.py fails

Added by Christopher Hoffman about 1 year ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
fscrypt
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-340-g9be97d7cde
Released In:
Upkeep Timestamp:
2026-06-23T13:06:24+00:00
Tags:

Description

https://pulpito.ceph.com/choffman-2025-09-23_20:00:48-fs:workload-wip-choffman-fscrypt-distro-default-smithi/8516106

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

Related issues 1 (0 open — 1 closed)

Related to CephFS - Tasks #63293: Implement fscrypt in libcephfs and cephfs-fuseResolvedChristopher Hoffman

Actions

CH Updated by Christopher Hoffman about 1 year ago Actions #1

  • Parent task deleted (#63293)

Test fails when running with-fscrypt-dummy in userspace.

CH Updated by Christopher Hoffman about 1 year ago Actions #2

  • Related to Tasks #63293: Implement fscrypt in libcephfs and cephfs-fuse added

VS Updated by Venky Shankar 12 months ago Actions #3

  • Tags set to fscrypt

BH Updated by Brad Hubbard 10 months ago Actions #4

$ 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 Actions #5

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 Actions #6

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 Actions #7

  • Status changed from New to In Progress

CH Updated by Christopher Hoffman 8 months ago ยท Edited Actions #8

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 Actions #9

  • Pull request ID set to 68482

CH Updated by Christopher Hoffman 8 months ago Actions #11

  • Status changed from In Progress to Fix Under Review

VS Updated by Venky Shankar 7 months ago Actions #12

  • Labels (FS) fscrypt added

UB Updated by Upkeep Bot 5 months ago Actions #13

  • 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

CH Updated by Christopher Hoffman 5 months ago Actions #16

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?

Actions

Also available in: PDF Atom