Project

General

Profile

Actions

Bug #58228

closed
VS DP

mgr/nfs: disallow non-existent paths when creating export

Bug #58228: mgr/nfs: disallow non-existent paths when creating export

Added by Venky Shankar almost 4 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Administration/Usability
Target version:
Due date:
% Done:

0%

Source:
Backport:
reef,quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/nfs
Labels (FS):
NFS-cluster
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-3239-g365895fb2d1
Released In:
v19.2.0~2605
Upkeep Timestamp:
2025-07-12T21:08:51+00:00

Description

Right now the path isn't validated, so one can:

# ceph nfs export create cephfs cephfs testnfs /cephfs/d6 /non_existed_dir
{
    "bind": "/cephfs/d6",
    "fs": "cephfs",
    "path": "/non_existed_dir",
    "cluster": "testnfs",
    "mode": "RW" 
}

and the export will be happily created. Mounting the export would fail obviously, however, this can be checked when creating the export and informing the operator.


Related issues 3 (0 open — 3 closed)

Copied to CephFS - Backport #59250: quincy: mgr/nfs: disallow non-existent paths when creating exportResolvedDhairya Parmar

Actions
Copied to CephFS - Backport #59251: reef: mgr/nfs: disallow non-existent paths when creating exportResolvedDhairya Parmar

Actions
Copied to CephFS - Backport #59252: pacific: mgr/nfs: disallow non-existent paths when creating exportResolvedDhairya Parmar

Actions

DP Updated by Dhairya Parmar almost 4 years ago Actions #1

  • Pull request ID set to 49460

DP Updated by Dhairya Parmar almost 4 years ago Actions #2

  • Status changed from New to Fix Under Review

VS Updated by Venky Shankar over 3 years ago Actions #3

  • Status changed from Fix Under Review to Pending Backport
  • Target version changed from v18.0.0 to v19.0.0
  • Backport changed from pacific,quincy to reef,quincy,pacific

UB Updated by Upkeep Bot over 3 years ago Actions #4

  • Copied to Backport #59250: quincy: mgr/nfs: disallow non-existent paths when creating export added

UB Updated by Upkeep Bot over 3 years ago Actions #5

  • Copied to Backport #59251: reef: mgr/nfs: disallow non-existent paths when creating export added

UB Updated by Upkeep Bot over 3 years ago Actions #6

  • Copied to Backport #59252: pacific: mgr/nfs: disallow non-existent paths when creating export added

DP Updated by Dhairya Parmar over 3 years ago Actions #9

Venky Shankar wrote:

Dhairya, please pick up additional commits from https://github.com/ceph/ceph/pull/51005.

Alright

DP Updated by Dhairya Parmar over 3 years ago Actions #10

Dhairya Parmar wrote:

Venky Shankar wrote:

Dhairya, please pick up additional commits from https://github.com/ceph/ceph/pull/51005.

Alright

Done

DP Updated by Dhairya Parmar over 1 year ago Actions #11

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Merge Commit set to 365895fb2d1164c8b4568649a03ca241dc6866ac
  • Fixed In set to v18.0.0-3239-g365895fb2d1
  • Released In set to v19.2.0~2605
  • Upkeep Timestamp set to 2025-07-12T21:08:51+00:00
Actions

Also available in: PDF Atom