From 5a0ebacb88db0318d92b5d914e49a4a136872c0b Mon Sep 17 00:00:00 2001 From: silvacarloss Date: Tue, 12 Mar 2024 16:56:36 -0300 Subject: [PATCH] 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 --- manila/share/drivers/cephfs/driver.py | 4 ++++ .../deprecate-ceph-nfs-protocol-helper-ba5ec5095d9eaca7.yaml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/deprecate-ceph-nfs-protocol-helper-ba5ec5095d9eaca7.yaml diff --git a/manila/share/drivers/cephfs/driver.py b/manila/share/drivers/cephfs/driver.py index 6117a7e27c..5964f600ba 100644 --- a/manila/share/drivers/cephfs/driver.py +++ b/manila/share/drivers/cephfs/driver.py @@ -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'): diff --git a/releasenotes/notes/deprecate-ceph-nfs-protocol-helper-ba5ec5095d9eaca7.yaml b/releasenotes/notes/deprecate-ceph-nfs-protocol-helper-ba5ec5095d9eaca7.yaml new file mode 100644 index 0000000000..26c10f21c4 --- /dev/null +++ b/releasenotes/notes/deprecate-ceph-nfs-protocol-helper-ba5ec5095d9eaca7.yaml @@ -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.