Bug 2220891

Summary: [NFS-Ganesha] NFS mount with vers=4.0 is failing on client
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Manisha Saini <msaini>
Component: NFS-GaneshaAssignee: Frank Filz <ffilz>
Status: NEW --- QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: cephqe-warriors, vdas
Target Milestone: ---   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
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:

Description Manisha Saini 2023-07-06 12:54:37 UTC
Description of problem:
==========
Mounting of NFS share on client with v4.0 is failing.

#  mount -t nfs -o vers=4.0,port=2049 ceph-mani-30erzz-node6:/ganesha2 /mnt/ganesha/
mount.nfs: Protocol not supported

Export block
=====

  {
    "export_id": 2,
    "path": "/volumes/_nogroup/ganesha2/d616fcd5-752f-489a-8ebe-a6e5d966323f",
    "cluster_id": "nfsganesha",
    "pseudo": "/ganesha2",
    "access_type": "RO",
    "squash": "none",
    "security_label": true,
    "protocols": [
      4
    ],
    "transports": [
      "TCP"
    ],
    "fsal": {
      "name": "CEPH",
      "user_id": "nfs.nfsganesha.2",
      "fs_name": "cephfs"
    },
    "clients": []
  }
]


Same is passing with v4.1

#  mount -t nfs -o vers=4.1,port=2049 ceph-mani-30erzz-node6:/ganesha2 /mnt/ganesha/
# 

tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=374800k,nr_inodes=93700,mode=700,inode64)
ceph-mani-30erzz-node6:/ganesha2 on /mnt/ganesha type nfs4 (rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.0.208.62,local_lock=none,addr=10.0.209.47)


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

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


How reproducible:
============
2/2

Steps to Reproduce:
=========
1. Deploy Ceph cluster with NFS
2. Create an CephFS volume and mount the volume on client via v4.0

#mount -t nfs -o vers=4.0,port=2049 ceph-mani-30erzz-node6:/ganesha2 /mnt/ganesha/


Actual results:
=========
Mount failed - mount.nfs: Protocol not supported


Expected results:
==========
Mount should pass


Additional info: