Project

General

Profile

Bug #51440

fallocate fails with EACCES

Added by Jeff Layton 4 months ago. Updated 4 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

https://pulpito.ceph.com/yuriw-2021-06-29_00:14:14-fs-wip-yuri-testing-2021-06-28-1259-pacific-distro-basic-smithi/6241267

Looks like some sort of spurious permissions issue:

2021-06-29T03:22:03.642 DEBUG:teuthology.orchestra.run.smithi053:> stat --file-system '--printf=%T
2021-06-29T03:22:03.643 DEBUG:teuthology.orchestra.run.smithi053:> ' -- /home/ubuntu/cephtest/mnt.0
2021-06-29T03:22:03.651 INFO:teuthology.orchestra.run.smithi053.stdout:fuseblk
2021-06-29T03:22:03.651 INFO:tasks.cephfs.fuse_mount:ceph-fuse is mounted on /home/ubuntu/cephtest/mnt.0
2021-06-29T03:22:03.652 INFO:teuthology.orchestra.run:Running command with timeout 900
2021-06-29T03:22:03.652 DEBUG:teuthology.orchestra.run.smithi053:> sudo chmod 1777 /home/ubuntu/cephtest/mnt.0
2021-06-29T03:22:03.665 DEBUG:teuthology.orchestra.run.smithi053:> mktemp
2021-06-29T03:22:03.714 INFO:teuthology.orchestra.run.smithi053.stdout:/tmp/tmp.8BxiMWCRFC
2021-06-29T03:22:03.715 DEBUG:teuthology.orchestra.run.smithi053:> set -ex
2021-06-29T03:22:03.715 DEBUG:teuthology.orchestra.run.smithi053:> dd of=/tmp/tmp.8BxiMWCRFC
2021-06-29T03:22:03.723 DEBUG:teuthology.orchestra.run.smithi053:> mktemp --suffix=dump1
2021-06-29T03:22:03.729 INFO:teuthology.orchestra.run.smithi053.stdout:/tmp/tmp.oZEHgZmlPEdump1
2021-06-29T03:22:03.730 INFO:teuthology.orchestra.run:Running command with timeout 900
2021-06-29T03:22:03.730 DEBUG:teuthology.orchestra.run.smithi053:> (cd /home/ubuntu/cephtest/mnt.0 && exec sudo fallocate -l 1 /tmp/tmp.oZEHgZmlPEdump1)
2021-06-29T03:22:03.797 INFO:teuthology.orchestra.run.smithi053.stderr:fallocate: cannot open /tmp/tmp.oZEHgZmlPEdump1: Permission denied
2021-06-29T03:22:03.798 DEBUG:teuthology.orchestra.run:got remote process result: 1
2021-06-29T03:22:03.800 INFO:teuthology.nuke.actions:Clearing teuthology firewall rules...
2021-06-29T03:22:03.801 DEBUG:teuthology.orchestra.run.smithi053:> sudo sh -c 'iptables-save | grep -v teuthology | iptables-restore'

So it created a file using mktemp and then fallocate failed with EACCES.


Related issues

Duplicates CephFS - Bug #51417: qa: test_ls_H_prints_human_readable_file_size failure Resolved

History

#1 Updated by Jeff Layton 4 months ago

  • Subject changed from Test failure: test_ls_H_prints_human_readable_file_size (tasks.cephfs.test_cephfs_shell.TestLS) to fallocate fails with EACCES

#2 Updated by Jeff Layton 4 months ago

I'm not even sure that this is ceph related. The command was trying to open a file in /tmp to do an fallocate (which also makes me wonder -- why?)

The kernel on this box is stock Ubuntu 5.4.0-77-generic. I suspect this is a kernel bug of some sort, unrelated to ceph.

#3 Updated by Patrick Donnelly 4 months ago

  • Duplicates Bug #51417: qa: test_ls_H_prints_human_readable_file_size failure added

#4 Updated by Patrick Donnelly 4 months ago

  • Status changed from New to Duplicate

Also available in: Atom PDF