Project

General

Profile

Actions

Bug #23262

closed

kclient: nofail option not supported

Added by Kenneth Waegeman about 6 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
% Done:

0%

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

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


Related issues 3 (0 open3 closed)

Copied to CephFS - Backport #39231: luminous: kclient: nofail option not supportedResolvedPatrick DonnellyActions
Copied to CephFS - Backport #39232: nautilus: kclient: nofail option not supportedResolvedWei-Chung ChengActions
Copied to CephFS - Backport #39233: mimic: kclient: nofail option not supportedResolvedPrashant DActions
Actions #1

Updated by Chengguang Xu almost 6 years 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?

Actions #2

Updated by Kenneth Waegeman almost 6 years 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

Actions #3

Updated by Ilya Dryomov over 5 years 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.

Actions #4

Updated by Ilya Dryomov over 5 years ago

  • Project changed from Linux kernel client to CephFS
  • Component(FS) kceph added
Actions #5

Updated by Patrick Donnelly over 5 years 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
Actions #6

Updated by Kenneth Waegeman over 5 years ago

any update on this?

thanks!

Actions #7

Updated by Patrick Donnelly about 5 years ago

  • Target version changed from v14.0.0 to v15.0.0
Actions #8

Updated by Kenneth Waegeman about 5 years ago

I've an attempt to a fix here https://github.com/ceph/ceph/pull/26992

Actions #9

Updated by Patrick Donnelly about 5 years ago

  • Status changed from New to Pending Backport
  • Assignee changed from Zheng Yan to Kenneth Waegeman
  • Start date deleted (03/07/2018)
  • Backport changed from mimic,luminous to nautilus,mimic,luminous
  • Pull request ID set to 26992
Actions #10

Updated by Kenneth Waegeman about 5 years ago

Hi,
Should I do something to backport it?

Actions #11

Updated by Patrick Donnelly about 5 years ago

Kenneth Waegeman wrote:

Hi,
Should I do something to backport it?

No that's not necessary.

Actions #12

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #39231: luminous: kclient: nofail option not supported added
Actions #13

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #39232: nautilus: kclient: nofail option not supported added
Actions #14

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #39233: mimic: kclient: nofail option not supported added
Actions #15

Updated by Nathan Cutler almost 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF