Project

General

Profile

Actions

Bug #56067

closed

Cephfs data loss with root_squash enabled

Added by Vladimir Brik almost 2 years ago. Updated about 16 hours ago.

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

100%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

With root_squash client capability enabled, a file is created as a non-root user on one host, appears empty when read on another host (0 size, cat returns nothing)

Steps to reproduce:
$ ssh vbrik@c9-1 'date > /mnt/ceph1-npx/stress-test/vbrik/XXX'
$ ssh vbrik@c9-2 'cat /mnt/ceph1-npx/stress-test/vbrik/XXX'
(no output)

This is on Ceph 16.2.9 with clients running mainline 4.19.246 and EL8 4.18.0-372.9.1 kernels.

The created files are read correctly on the host that created them, but if the file system is remounted the files become empty.

On occasion, the first read on the host that didn't create the file succeeds, but subsequent reads return nothing.

I am attaching mds log with debug_mds=25 for the commands above: c9-1 (writer) client id is 1039563, c9-2 (reader) client id is 1041297, file name is XXX.


Files


Subtasks 1 (0 open1 closed)

Linux kernel client - Bug #62604: write() hangs forever in ceph_get_capsDuplicateXiubo Li

Actions

Related issues 2 (1 open1 closed)

Related to CephFS - Feature #42451: mds: add root_squash ResolvedRamana Raja

Actions
Related to CephFS - Bug #57154: kernel/fuse client using ceph ID with uid restricted MDS caps cannot update capsPending BackportXiubo Li

Actions
Actions

Also available in: Atom PDF