Bug #19896
client: test failure for O_RDWR file open
0%
Description
We have a test failure in test_cephfs.test_open (and test_cephfs.test_mount_unmount): http://pulpito.ceph.com/pdonnell-2017-05-09_17:36:48-fs-wip-pdonnell-integration-distro-basic-smithi/1118389/
We have this error:
2017-05-09T18:28:58.923 INFO:tasks.workunit.client.0.smithi066.stderr:====================================================================== 2017-05-09T18:28:58.923 INFO:tasks.workunit.client.0.smithi066.stderr:ERROR: test_cephfs.test_open 2017-05-09T18:28:58.923 INFO:tasks.workunit.client.0.smithi066.stderr:---------------------------------------------------------------------- 2017-05-09T18:28:58.923 INFO:tasks.workunit.client.0.smithi066.stderr:Traceback (most recent call last): 2017-05-09T18:28:58.923 INFO:tasks.workunit.client.0.smithi066.stderr: File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest 2017-05-09T18:28:58.923 INFO:tasks.workunit.client.0.smithi066.stderr: self.test(*self.arg) 2017-05-09T18:28:58.923 INFO:tasks.workunit.client.0.smithi066.stderr: File "/home/ubuntu/cephtest/clone.client.0/src/test/pybind/test_cephfs.py", line 140, in test_open 2017-05-09T18:28:58.924 INFO:tasks.workunit.client.0.smithi066.stderr: cephfs.write(fd, b"zxcv", 4) 2017-05-09T18:28:58.924 INFO:tasks.workunit.client.0.smithi066.stderr: File "cephfs.pyx", line 752, in cephfs.LibCephFS.write (/build/ceph-12.0.1-2235-ga0a5df4/obj-x86_64-linux-gnu/src/pybind/cephfs/pyrex/cephfs.c:9877)
The file was opened here: https://github.com/ceph/ceph/blob/bfcd2fffe19fdb656fd5535ee4134b0085e075db/src/test/pybind/test_cephfs.py#L138
I dug into the logs and found this suspicious line in /ceph/teuthology-archive/pdonnell-2017-05-09_17:36:48-fs-wip-pdonnell-integration-distro-basic-smithi/1118389/remote/smithi066/log/ceph-client.admin.22676.log.gz
2017-05-09 18:28:56.532206 7fa8794d9740 10 client.4136 _create_fh 1000000000a mode 1 2017-05-09 18:28:56.532223 7fa8794d9740 3 client.4136 open exit(file-1, 576) = 10
Looks like the file handle was marked CEPH_FILE_MODE_RD when it should be CEPH_FILE_MODE_RDWR.
This was likely introduced in https://github.com/ceph/ceph/pull/14822
Related issues
History
#1 Updated by Patrick Donnelly almost 7 years ago
This problem also appears to be affecting a few other tests:
Failure: Command failed (workunit test libcephfs/test.sh) on smithi158 with status 1: 'mkdir -p -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && cd -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && CEPH_CLI_TEST_DUP_COMMAND=1 CEPH_REF=wip-pdonnell-integration TESTDIR="/home/ubuntu/cephtest" CEPH_ARGS="--cluster ceph" CEPH_ID="0" PATH=$PATH:/usr/sbin CEPH_BASE=/home/ubuntu/cephtest/clone.client.0 adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 3h /home/ubuntu/cephtest/clone.client.0/qa/workunits/libcephfs/test.sh' 8 jobs: ['1118329', '1118302', '1118277', '1118383', '1118407', '1118353', '1118434', '1118458'] suites intersection: ['clusters/fixed-2-ucephfs.yaml', 'frag_enable.yaml', 'fs/basic_workload/{begin.yaml', 'mount/fuse.yaml', 'overrides/{debug.yaml', 'tasks/libcephfs_interface_tests.yaml}', 'whitelist_wrongly_marked_down.yaml}'] suites union: ['clusters/fixed-2-ucephfs.yaml', 'frag_enable.yaml', 'fs/basic_workload/{begin.yaml', 'inline/no.yaml', 'inline/yes.yaml', 'mount/fuse.yaml', 'objectstore/bluestore.yaml', 'objectstore/filestore-xfs.yaml', 'omap_limit/10.yaml', 'omap_limit/10000.yaml', 'overrides/{debug.yaml', 'tasks/libcephfs_interface_tests.yaml}', 'whitelist_wrongly_marked_down.yaml}']
We get this failure in LibCephFS.ClearSetuid:
2017-05-09T18:13:28.058 INFO:tasks.workunit.client.0.smithi158.stdout:/build/ceph-12.0.1-2235-ga0a5df4/src/test/libcephfs/test.cc:1765: Failure 2017-05-09T18:13:28.058 INFO:tasks.workunit.client.0.smithi158.stdout: Expected: stx.stx_mode & (mode_t)(04000|02000|01000|(0400|0200|0100)|((0400|0200|0100) >> 3)|(((0400|0200|0100) >> 3) >> 3))
#2 Updated by Patrick Donnelly almost 7 years ago
- Status changed from New to Duplicate
#3 Updated by Patrick Donnelly almost 7 years ago
- Duplicates Bug #19890: src/test/pybind/test_cephfs.py fails added