]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: migrate all legacy nfs exports to new .nfs pool
authorSage Weil <sage@newdream.net>
Fri, 2 Jul 2021 19:53:15 +0000 (15:53 -0400)
committerSage Weil <sage@newdream.net>
Wed, 14 Jul 2021 20:20:11 +0000 (16:20 -0400)
commitc183bccdc6728e8321eec615b1acd88216acabca
tree3e3a032e52f3f20f7c1ab263959adf31d07e5639
parent379a1fc4d794405edd4c34d9ac44c2c5621cfe58
mgr/cephadm: migrate all legacy nfs exports to new .nfs pool

Migrate all past NFS pools, whether they were created by mgr/nfs or by
the dashboard, to the new mgr/nfs .nfs pool.

Since this migrations relies on RADOS being available, we have to be a bit
careful here: we only attempt the migration from serve(), not during
module init.

After the exports are re-imported, we destroy existing ganesha daemons so
that new ones will get recreated.  This ensures the (new) daemons have
cephx keys to access the new pool.

Note that no attempt is made to clean up the old NFS pools.  This is out
of paranoia: if something goes wrong, the old NFS configuration data will
still be there.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/migrations.py
src/pybind/mgr/cephadm/tests/test_migration.py