This commit prevents the creation of NFS clusters that don't use the
.nfs RADOS pool using ceph orch apply nfs.
Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
client = None
config = None
-from mgr_module import MgrModule, Option
+from mgr_module import MgrModule, Option, NFS_POOL_NAME
import orchestrator
from orchestrator import handle_orch_error, OrchResult, raise_if_exception
# CephNFSes
all_nfs = self.rook_cluster.get_resource("cephnfses")
for nfs in all_nfs:
+ if nfs['spec']['rados']['pool'] != NFS_POOL_NAME:
+ continue
nfs_name = nfs['metadata']['name']
svc = 'nfs.' + nfs_name
if svc in spec: