Bug 2303247 - [NFS] [Dashboard] The "Create NFS export" button for subvolumes sometimes incorrectly uses the CephFS Path of the subvolume group instead of the subvolume itself. [NEEDINFO]
Summary: [NFS] [Dashboard] The "Create NFS export" button for subvolumes sometimes inc...
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 8.0z4
Assignee: dtalweka
QA Contact: Manisha Saini
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks: 2298634 2317218
TreeView+ depends on / blocked
 
Reported: 2024-08-06 19:23 UTC by Manisha Saini
Modified: 2025-04-15 08:27 UTC (History)
8 users (show)

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.
Clone Of:
Environment:
Last Closed:
Embargoed:
rpollack: needinfo? (anbehl)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 60356 0 None open Squid: mgr/dashboard: The subvolumes are missing from the dropdown menu on the "Create NFS export" page 2024-10-16 15:28:01 UTC
Red Hat Issue Tracker RHCEPH-9644 0 None None None 2024-09-02 05:38:19 UTC
Red Hat Issue Tracker RHCSDASH-1590 0 None None None 2024-09-02 05:38:25 UTC

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:


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