Don't override nfs protocols w/ CephFS

The CephFS NFS service may be configured to
allow any or all NFS versions; Manila exports
must not prevent that by only requesting
NFS v4.0+ via export policies.

Change-Id: If1cbeec2318f1b1bbd087cc2addf7f196fda8974
Closes-Bug: #2099273
This commit is contained in:
Goutham Pacha Ravi
2025-02-20 13:41:15 -08:00
parent 5f11287dfd
commit 314a391430
3 changed files with 8 additions and 2 deletions

View File

@@ -1612,7 +1612,6 @@ class NFSClusterProtocolHelper(NFSProtocolHelperMixin, ganesha.NASHelperBase):
"pseudo": self._get_export_pseudo_path(share, sub_name=sub_name),
"squash": "none",
"security_label": True,
"protocols": [4],
"fsal": {
"name": "CEPH",
"fs_name": self.volname,

View File

@@ -1885,7 +1885,6 @@ class NFSClusterProtocolHelperTestCase(test.TestCase):
"pseudo": "ganesha:/foo/bar",
"squash": "none",
"security_label": True,
"protocols": [4],
"fsal": {
"name": "CEPH",
"fs_name": volname,

View File

@@ -0,0 +1,8 @@
---
fixes:
- |
`Launchpad bug 2099273 <https://bugs.launchpad.net/manila/+bug/2099273>`
has been addressed by removing the NFS protocol override within the
request sent to the Ceph Manager API. This allows users to mount shares
exported by the Ceph NFS service with any NFS protocol version exposed by
that service.