Project

General

Profile

Bug #23262

kclient: nofail option not supported

Added by Kenneth Waegeman 9 months ago. Updated 3 months ago.

Status:
New
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
03/07/2018
Due date:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Component(FS):
kceph
Labels (FS):
Pull request ID:

Description

I get an invalid argument when trying to mount ceph with nofail option
mon01,mon02,mon03:/ /mnt/ceph ceph name=cephfs,secretfile=/etc/ceph/secret,noatime,nofail 0 0
or
[root@osd003 ~]# mount -t ceph mon01,mon02,mon03:/ /mnt/ceph -o name=admin,secretfile=/etc/ceph/secret,noatime,nofail
mount error 22 = Invalid argument

Without nofail the mount succeeds.

I am running centos7.4 3.10.0-693.17.1.el7. ceph cluster running 12.2.4

History

#1 Updated by Chengguang Xu 6 months ago

It seems mount command cannot recognize nofail option, not ceph or ceph kernel client.
What version of util-linux do you use? Can you upgrade util-linux to 2.32 and a test again?

#2 Updated by Kenneth Waegeman 5 months ago

We are running the latest util-linux of centos 7.5, util-linux-2.23.2-52.el7.x86_64.
If we mount another fs type with mount, nofail works (eg tested with NFS), but not with mount.ceph

#3 Updated by Ilya Dryomov 3 months ago

The issue is that mount.ceph helper doesn't handle nofail, but passes it through to the kernel. nofail is a userspace level option, it shouldn't be making it to the kernel.

mount.ceph.c should be taught to handle nofail: not just skip it, but return success if things like address resolution fail, etc.

#4 Updated by Ilya Dryomov 3 months ago

  • Project changed from Linux kernel client to fs
  • Component(FS) kceph added

#5 Updated by Patrick Donnelly 3 months ago

  • Subject changed from nofail option not supported to kclient: nofail option not supported
  • Assignee set to Zheng Yan
  • Priority changed from Normal to High
  • Target version set to v14.0.0
  • Backport set to mimic,luminous

Also available in: Atom PDF