Bug 1908263 - Cephfs nfs export should not be created with non-existent path
Summary: Cephfs nfs export should not be created with non-existent path
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Documentation
Version: 5.0
Hardware: All
OS: All
medium
low
Target Milestone: ---
: 6.1z2
Assignee: Anjana Suparna Sriram
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2170739
TreeView+ depends on / blocked
 
Reported: 2020-12-16 09:21 UTC by Yogesh Mane
Modified: 2024-01-14 04:25 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2170739 (view as bug list)
Environment:
Last Closed: 2023-09-15 06:13:15 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 58228 0 None None None 2023-02-17 07:03:16 UTC

Comment 1 Varsha 2020-12-31 12:32:54 UTC
Volume/nfs interface expects a valid path. I have updated the doc with this PR[https://github.com/ceph/ceph/pull/38742].

Comment 2 Hemanth Kumar 2021-04-27 04:37:34 UTC
@varsha,

Can we restrict creation of a export when the non existent path is used ?

Comment 3 Varsha 2021-04-27 06:26:01 UTC
No, see my earlier comment. We expect valid path to be specified.

Comment 5 Varsha 2021-04-29 12:59:30 UTC
We can but we will have to mount cephfs. For now I would prefer not doing it.

Comment 14 Ram Raja 2021-12-15 00:55:54 UTC
Even with master (17.x) the `ceph nfs` command to create NFS export of non-existent CephFS paths succeeds. The mgr/nfs module does not check whether the CephFS path exists. As mentioned earlier in this BZ, the mgr/nfs module would need a CephFS client to do this.

The other solution could be to rely on the NFS-Ganesha server to report back error to mgr/nfs module when reloading its exports of which one export cannot be created. For this, https://github.com/nfs-ganesha/nfs-ganesha/issues/757 would have to be solved. This would allow the mgr/nfs module to fail the `ceph nfs export create` of non-existent CephFS paths.

@Yogesh Mane, can you check if you can remove/clean up the incorrect export using the `ceph nfs export rm` command?

Comment 17 Greg Farnum 2022-01-05 23:48:37 UTC
Moving this out to 6.0 and resetting to NEW — we don't even have a viable solution to work towards at this time.

Comment 22 Venky Shankar 2022-12-09 04:25:25 UTC
Upstream tracker - https://tracker.ceph.com/issues/58228

The doc changes should already be available downstream, Yogesh - https://github.com/ceph/ceph/pull/38742

Comment 23 Yogesh Mane 2022-12-14 14:06:17 UTC
Hi Venky,

I am not seeing these changes in https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/5/html-single/file_system_guide/index 

Could provide the link of downstream doc?

Comment 38 Red Hat Bugzilla 2024-01-14 04:25:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.