#17982·rook

nfs: remove automatic pool creation via ceph CLI in favor of CephBlockPool CR

Author: OdedVinerCreated Jul 15, 2026Updated Sep 27, 2026

The NFS controller currently creates the .nfs pool automatically via ceph osd pool create during reconciliation in configureNFSPool():

// pkg/operator/ceph/nfs/nfs.go
args := []string{"osd", "pool", "create", poolName, "--yes-i-really-mean-it"}
output, err := cephclient.NewCephCommand(r.context, r.clusterInfo, args).Run()

This bypasses the CephBlockPool CR, which means:

The pool is created with Ceph defaults and the user has no control over failureDomain, replicated.size, or other pool settings unless they also create a CephBlockPool CR.

There are two different code paths managing the same pool (CLI and CephBlockPool controller), which is inconsistent. The pool should be managed through the standard CephBlockPool CR, giving users full control over pool configuration.

Current behavior: The NFS controller calls configureNFSPool() on every reconcile, which runs ceph osd pool create .nfs. If the pool already exists (e.g., because the user already created a builtin-nfs CephBlockPool CR), the command is a no-op — it does not fail or cause harm. For example, nfs-test.yaml bundles both a CephNFS CR and a builtin-nfs CephBlockPool CR in the same file, and this works fine because ceph osd pool create is idempotent.

Desired behavior:

The .nfs pool should only be created via a CephBlockPool CR (like .mgr). The controller should either:

  1. Require the user to create the builtin-nfs CephBlockPool CR before creating the CephNFS CR, or
  2. Wait for the .nfs pool to exist (created via CephBlockPool CR) before proceeding with reconciliation.

The configureNFSPool() function and its ceph osd pool create call should be removed from the controller. https://github.com/rook/rook/blob/72403b99d764a1e7014047c1d04027e5710f707c/pkg/operator/ceph/nfs/nfs.go#L325