Repository navigation
client: return EOPNOTSUPP for fallocate with mode 0 - #59725
Conversation
624ce51 to
1eb6cee
Compare
|
for doc updates, please see the |
|
This should get a PendingReleaseNote since we're changing the API |
1eb6cee to
b6bae5b
Compare
|
|
@anthonyeleven please review |
|
oh, I tried this on a vstart cluster with strace'ing fallocate on ceph-fuse:
This is handle in kclient as per: ceph/ceph-client@bddff63 (taken from the mail you sent to ceph-users, subject "RFC: cephfs fallocate" - mentioning it here for brevity). |
There was a problem hiding this comment.
nit: just mention that the default case is mode:0
There was a problem hiding this comment.
updated the PendingReleaseNotes with mode == 0
b6bae5b to
e059578
Compare
|
Docs lgtm, note to self to wordsmith after merge. |
|
This PR is under test in https://tracker.ceph.com/issues/68179. |
e059578 to
cb21b64
Compare
|
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
cb21b64 to
739ee10
Compare
|
vshankar
left a comment
There was a problem hiding this comment.
The python binding tests needs fixing. See:
vshankar-2024-09-24_04:11:42-fs-wip-vshankar-testing-20240923.114534-debug-testing-default-smithi/7917550
2024-09-24T08:52:17.447 INFO:tasks.workunit.client.0.smithi059.stdout:
2024-09-24T08:52:17.447 INFO:tasks.workunit.client.0.smithi059.stdout:=================================== FAILURES ===================================
2024-09-24T08:52:17.447 INFO:tasks.workunit.client.0.smithi059.stdout:________________________________ test_fallocate ________________________________
2024-09-24T08:52:17.448 INFO:tasks.workunit.client.0.smithi059.stdout:
2024-09-24T08:52:17.448 INFO:tasks.workunit.client.0.smithi059.stdout:testdir = None
2024-09-24T08:52:17.448 INFO:tasks.workunit.client.0.smithi059.stdout:
2024-09-24T08:52:17.448 INFO:tasks.workunit.client.0.smithi059.stdout: def test_fallocate(testdir):
2024-09-24T08:52:17.448 INFO:tasks.workunit.client.0.smithi059.stdout: fd = cephfs.open(b'/file-fallocate', 'w', 0o755)
2024-09-24T08:52:17.448 INFO:tasks.workunit.client.0.smithi059.stdout: assert_raises(TypeError, cephfs.fallocate, b'/file-fallocate', 0, 10)
2024-09-24T08:52:17.449 INFO:tasks.workunit.client.0.smithi059.stdout:> cephfs.fallocate(fd, 0, 10)
2024-09-24T08:52:17.449 INFO:tasks.workunit.client.0.smithi059.stdout:
2024-09-24T08:52:17.449 INFO:tasks.workunit.client.0.smithi059.stdout:../../../clone.client.0/src/test/pybind/test_cephfs.py:613:
2024-09-24T08:52:17.449 INFO:tasks.workunit.client.0.smithi059.stdout:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2024-09-24T08:52:17.449 INFO:tasks.workunit.client.0.smithi059.stdout:
2024-09-24T08:52:17.449 INFO:tasks.workunit.client.0.smithi059.stdout:> ???
2024-09-24T08:52:17.450 INFO:tasks.workunit.client.0.smithi059.stdout:E cephfs.OperationNotSupported: fallocate failed: Operation not supported [Errno 95]
2024-09-24T08:52:17.450 INFO:tasks.workunit.client.0.smithi059.stdout:
2024-09-24T08:52:17.450 INFO:tasks.workunit.client.0.smithi059.stdout:cephfs.pyx:955: OperationNotSupported
739ee10 to
f6a79e1
Compare
|
|
@mchangir could you rebase this please? (minor pending release notes conflict). |
fallocate now returns EOPNOTSUPP for mode 0 Signed-off-by: Milind Changire <[email protected]>
Signed-off-by: Milind Changire <[email protected]>
Signed-off-by: Milind Changire <[email protected]>
ffa37aa to
9244f0a
Compare
|
rebased |
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
|
jenkins test windows |
| widely adopted among the Ceph user community. | ||
|
|
||
| * CephFS: EOPNOTSUPP (Operation not supported ) is now returned by the CephFS | ||
| fuse client for `fallocate` for the default case (i.e. mode == 0) since |
There was a problem hiding this comment.
@mchangir - Sorry for the late remark but I just found out about this change. This change is causing a failure in the go-ceph ci (see ceph/go-ceph#1044 ). The change itself is not a problem, we will deal with it. My request is to tweak the release note because 'fuse client' is a bit misleading as this change doesn't only impact fuse. Maybe tweak it to say 'fuse client or other libcephfs clients'? Thanks.
There has been an internal change with fallocate API[1] forcing us not to run those fallocate tests which uses mode as 0. For now we skip those tests on main branch. [1] ceph/ceph#59725 Signed-off-by: Anoop C S <[email protected]>
There are backports created for fallocate API changes[1] that got merged recently. Considering the time taken for these backports to get in to release branches and finally as a released version we create a separate test file to have more fine grained control over various pre-release CI jobs with the help of corresponding build tags. Modification of build tags should go hand-in-hand with the version detection logic used in file_test.go once a backport is available in released version. [1] ceph/ceph#59725 Signed-off-by: Anoop C S <[email protected]>
There has been an internal change with fallocate API[1] forcing us not to run those fallocate tests which uses mode as 0. For now we skip those tests on main branch. [1] ceph/ceph#59725 Signed-off-by: Anoop C S <[email protected]>
There are backports created for fallocate API changes[1] that got merged recently. Considering the time taken for these backports to get in to release branches and finally as a released version we create a separate test file to have more fine grained control over various pre-release CI jobs with the help of corresponding build tags. Modification of build tags should go hand-in-hand with the version detection logic used in file_test.go once a backport is available in released version. [1] ceph/ceph#59725 Signed-off-by: Anoop C S <[email protected]>
There are backports created for fallocate API changes[1] that got merged recently. Considering the time taken for these backports to get in to release branches and finally as a released version we create a separate test file to have more fine grained control over various pre-release CI jobs with the help of corresponding build tags. Modification of build tags should go hand-in-hand with the version detection logic used in file_test.go once a backport is available in released version. [1] ceph/ceph#59725 Signed-off-by: Anoop C S <[email protected]>
There has been an internal change with fallocate API[1] forcing us not to run those fallocate tests which uses mode as 0. For now we skip those tests on main branch. [1] ceph/ceph#59725 Signed-off-by: Anoop C S <[email protected]>
There are backports created for fallocate API changes[1] that got merged recently. Considering the time taken for these backports to get in to release branches and finally as a released version we create a separate test file to have more fine grained control over various pre-release CI jobs with the help of corresponding build tags. Modification of build tags should go hand-in-hand with the version detection logic used in file_test.go once a backport is available in released version. [1] ceph/ceph#59725 Signed-off-by: Anoop C S <[email protected]>
Fixes: https://tracker.ceph.com/issues/68026
Signed-off-by: Milind Changire [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e