Bug 2300272 - [RHCS 8.0][NFS-Ganesha] NFS Export mount on client with NFS vers 3 is failing.
Summary: [RHCS 8.0][NFS-Ganesha] NFS Export mount on client with NFS vers 3 is failing.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.0
Assignee: Adam King
QA Contact: Manisha Saini
URL:
Whiteboard:
Depends On: 2308414 2312501
Blocks: 2317218
TreeView+ depends on / blocked
 
Reported: 2024-07-28 22:52 UTC by Manisha Saini
Modified: 2024-11-25 09:04 UTC (History)
4 users (show)

Fixed In Version: ceph-19.1.0-56
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-25 09:04:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-9421 0 None None None 2024-07-28 22:53:01 UTC
Red Hat Product Errata RHBA-2024:10216 0 None None None 2024-11-25 09:04:05 UTC

Description Manisha Saini 2024-07-28 22:52:42 UTC
Description of problem:
=============

Mounting export with vers=3 is failing with RHCS 8.0 build.
Changes which were made in RHCS 7.1 wrt vers 3 in ganesha.conf and export file is missing in RHCS 8.0 build.

RHCS 8.0
================

Export file --->

# ceph nfs export info nfsganesha /ganesha2
{
  "access_type": "RW",
  "clients": [],
  "cluster_id": "nfsganesha",
  "export_id": 2,
  "fsal": {
    "fs_name": "cephfs",
    "name": "CEPH",
    "user_id": "nfs.nfsganesha.2"
  },
  "path": "/",
  "protocols": [
    4
  ],
  "pseudo": "/ganesha2",
  "security_label": true,
  "squash": "none",
  "transports": [
    "TCP"
  ]
}


Ganesha.conf file


#  cat /usr/share/ceph/mgr/cephadm/templates/services/nfs/ganesha.conf.j2
# {{ cephadm_managed }}
NFS_CORE_PARAM {
        Enable_NLM = {{ enable_nlm }};
        Enable_RQUOTA = false;
        Protocols = 4;
        NFS_Port = {{ port }};
{% if bind_addr %}
        Bind_addr = {{ bind_addr }};
{% endif %}
{% if haproxy_hosts %}
        HAProxy_Hosts = {{ haproxy_hosts|join(", ") }};
{% endif %}
}

NFSv4 {
        Delegations = false;
        RecoveryBackend = 'rados_cluster';
        Minor_Versions = 1, 2;
{% if nfs_idmap_conf %}
        IdmapConf = "{{ nfs_idmap_conf }}";
{% endif %}
}

RADOS_KV {
        UserId = "{{ user }}";
        nodeid = "{{ nodeid }}";
        pool = "{{ pool }}";
        namespace = "{{ namespace }}";
}

RADOS_URLS {
        UserId = "{{ user }}";
        watch_url = "{{ url }}";
}

RGW {
        cluster = "ceph";
        name = "client.{{ rgw_user }}";
}

%url    {{ url }}


ganesha.conf file

# cat /usr/share/ceph/mgr/cephadm/templates/services/nfs/ganesha.conf.j2
# {{ cephadm_managed }}
NFS_CORE_PARAM {
        Enable_NLM = {{ enable_nlm }};
        Enable_RQUOTA = false;
        Protocols = 3, 4;
        mount_path_pseudo = true;
        NFS_Port = {{ port }};
{% if bind_addr %}
        Bind_addr = {{ bind_addr }};
{% endif %}
{% if haproxy_hosts %}
        HAProxy_Hosts = {{ haproxy_hosts|join(", ") }};
{% endif %}
}

NFSv4 {
        Delegations = false;
        RecoveryBackend = 'rados_cluster';
        Minor_Versions = 1, 2;
{% if nfs_idmap_conf %}
        IdmapConf = "{{ nfs_idmap_conf }}";
{% endif %}
}

RADOS_KV {
        UserId = "{{ user }}";
        nodeid = "{{ nodeid }}";
        pool = "{{ pool }}";
        namespace = "{{ namespace }}";
}

RADOS_URLS {
        UserId = "{{ user }}";
        watch_url = "{{ url }}";
}

RGW {
        cluster = "ceph";
        name = "client.{{ rgw_user }}";
}

%url    {{ url }}



RHCS 7.1
============
Export file

# ceph nfs export info nfsganesha /export_1
{
  "access_type": "RW",
  "clients": [],
  "cluster_id": "nfsganesha",
  "export_id": 1,
  "fsal": {
    "cmount_path": "/",
    "fs_name": "cephfs",
    "name": "CEPH",
    "user_id": "nfs.nfsganesha.cephfs"
  },
  "path": "/volumes/ganeshagroup/ganesha1/39f13294-c062-43c2-97d6-77c875e1b020",
  "protocols": [
    3,
    4
  ],
  "pseudo": "/export_1",
  "security_label": true,
  "squash": "none",
  "transports": [
    "TCP"
  ]
}


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

# rpm -qa | grep nfs
libnfsidmap-2.5.4-25.el9.x86_64
nfs-utils-2.5.4-25.el9.x86_64
nfs-ganesha-selinux-5.9-1.el9cp.noarch
nfs-ganesha-5.9-1.el9cp.x86_64
nfs-ganesha-rgw-5.9-1.el9cp.x86_64
nfs-ganesha-ceph-5.9-1.el9cp.x86_64
nfs-ganesha-rados-grace-5.9-1.el9cp.x86_64
nfs-ganesha-rados-urls-5.9-1.el9cp.x86_64

# ceph --version
ceph version 19.1.0-3.el9cp (2032ce88d0c0820de58f7fde69952e9e1c790f42) squid (rc)


How reproducible:
=================
Always


Steps to Reproduce:
===================
1. Create ganesha cluster
2. Create a cephfs filesystem. Create an export out of filesystem
3. Mount the export on client with vers=3

Actual results:
=============
Mount on client failed with vers=3


Expected results:
============
Mount with vers=3 is supported and it should be allowed by adding the entries in ganesha.conf and export file by default in code base


Additional info:

Comment 10 errata-xmlrpc 2024-11-25 09:04:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:10216


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