Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2303247

Summary: [NFS] [Dashboard] The "Create NFS export" button for subvolumes sometimes incorrectly uses the CephFS Path of the subvolume group instead of the subvolume itself.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Manisha Saini <msaini>
Component: Ceph-DashboardAssignee: dtalweka
Status: MODIFIED --- QA Contact: Arunkumar Ravindranath <aravindr>
Severity: high Docs Contact: Rivka Pollack <rpollack>
Priority: high    
Version: 8.0CC: afrahman, anbehl, ceph-eng-bugs, cephqe-warriors, dtalweka, ngangadh, nia, rpollack, tserlin
Target Milestone: ---Flags: rpollack: needinfo? (anbehl)
Target Release: 8.0z4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.0-33.el9cp Doc Type: Bug Fix
Doc Text:
.CephFS path is updated with the correct subvolume path when navigating through the subvolume tab Previously, the *Create NFS Export* form for CephFS the CephFS path was updating the subvolume group path instead of the subvolume. With this fix, CephFS path is updated with the correct subvolume path when navigating through the subvolume tab.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2298634, 2317218    

Description Manisha Saini 2024-08-06 19:23:16 UTC
Description of problem:
=======================
When we click the "Create NFS export" button under filesystem --> subvolume, the NFS export creation form appears. However, the form incorrectly uses the path of the subvolume group instead of the subvolume itself. Toggling the "subvolume" option corrects the path in the "CephFS Path" field to the subvolume path, instead of the subvolume group path.

Version-Release number of selected component (if applicable):
==================================

# ceph --version
ceph version 19.1.0-17.el9cp (c4a94422523bb32232df641cbb7125f05a5b49f2) squid (rc)

How reproducible:
================
Intermittent


Steps to Reproduce:
==================
1. Create NFS service from Dashboard
2. Create a new filesystem from Dashboard. EG - "nfsganesha"
3. Create a subvolume group from dashboard. EG - "group2"
4. Create subvolumes on that subvolume group. Eg - "Group1_vol1", "Group1_vol2", "Group1_vol3", "Group1_vol4", "Group1_vol5"
5. Now click on any subvolume (Eg - "Group1_vol1") --> Edit --> "Create NFS Export"

Actual results:
==============
NFS Export creation window appears.
The default "CephFS Path" picked up is of subvolume group instead of subvolume.
And export creation is done with subvolume group path - /volumes/group2

[ceph: root@ceph-auto-cluster-qwoqln-node1-installer /]# ceph nfs export ls nfsganesha
[
  "/cephfs/volumes/group2"
]
[ceph: root@ceph-auto-cluster-qwoqln-node1-installer /]# ceph nfs export info nfsganesha /cephfs/volumes/group2
{
  "access_type": "RW",
  "clients": [],
  "cluster_id": "nfsganesha",
  "export_id": 1,
  "fsal": {
    "fs_name": "nfsganesha",
    "name": "CEPH",
    "user_id": "nfs.nfsganesha.1"
  },
  "path": "/volumes/group2",
  "protocols": [
    3,
    4
  ],
  "pseudo": "/cephfs/volumes/group2",
  "security_label": false,
  "squash": "no_root_squash",
  "transports": [
    "TCP",
    "UDP"
  ]
} 


Expected results:
================
Default value of "CephFS Path" should be the path of subvolume.

Expected output:
-------
[ceph: root@ceph-auto-cluster-qwoqln-node1-installer /]# ceph nfs export ls nfsganesha
[
  "/cephfs/volumes/group2/Group1_vol1/98e2301f-9cd2-430b-8f72-303134094683"
]
[ceph: root@ceph-auto-cluster-qwoqln-node1-installer /]# ceph nfs export info nfsganesha /cephfs/volumes/group2/Group1_vol1/98e2301f-9cd2-430b-8f72-303134094683
{
  "access_type": "RW",
  "clients": [],
  "cluster_id": "nfsganesha",
  "export_id": 1,
  "fsal": {
    "fs_name": "nfsganesha",
    "name": "CEPH",
    "user_id": "nfs.nfsganesha.1"
  },
  "path": "/volumes/group2/Group1_vol1/98e2301f-9cd2-430b-8f72-303134094683",
  "protocols": [
    3,
    4
  ],
  "pseudo": "/cephfs/volumes/group2/Group1_vol1/98e2301f-9cd2-430b-8f72-303134094683",
  "security_label": false,
  "squash": "no_root_squash",
  "transports": [
    "TCP",
    "UDP"
  ]
}


Additional info: