Deprecate the Ceph NFSProtocolHelper

A couple of releases ago, we started supporting clustered NFS
gateways [1], and we mentioned we had clear intentions to make
this the default choice for the deployments.

In this change, we are deprecating the NFSProtocolHelper, which
will be removed in the next skip-level release.

This means that Manila will no longer support exports created over
a NFS Ganesha instance that is not managed by the Ceph Cluster.

[1] https://review.opendev.org/c/openstack/manila/+/848987

Change-Id: I062a8c552d7d94e010cef6694bec6da68d7ea180
This commit is contained in:
silvacarloss 2024-03-12 16:56:36 -03:00 committed by Carlos Eduardo
parent a230ea511e
commit 5a0ebacb88
2 changed files with 9 additions and 0 deletions

View File

@ -1140,6 +1140,10 @@ class NFSProtocolHelper(NFSProtocolHelperMixin, ganesha.GaneshaNASHelper2):
super(NFSProtocolHelper, self).__init__(execute, config_object,
**kwargs)
LOG.warning('The NFSProtocolHelper has been deprecated. Starting '
'from the 2025.1 release, we will no longer support '
'exporting NFS shares through a NFS Ganesha instance '
'that not managed by the Ceph orchestrator.')
if not hasattr(self, 'rados_client'):
self.rados_client = kwargs.pop('rados_client')
if not hasattr(self, 'volname'):

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Usage of the NFSProtocolHelper with the CephFS driver has been
deprecated and it will be removed in the next skip-level release.