]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/FSCommands: Fix 'add_data_pool' command
authorRamana Raja <rraja@redhat.com>
Sat, 11 Apr 2020 07:15:39 +0000 (12:45 +0530)
committerRamana Raja <rraja@redhat.com>
Mon, 27 Apr 2020 13:24:52 +0000 (18:54 +0530)
commit2eea3a19f620f97a4e543ee1dc72dd16b9713e90
tree931cc8f366a421544c3efd9514a2801676c84bdb
parente44d481069270099eb30ebdc453ea37004e0d203
mon/FSCommands: Fix 'add_data_pool' command

After making a RADOS pool a filesystem's data pool using the
'add_data_pool' command, the value of the 'data' key of the pool's
application metadata 'cephfs' should be the filesystem's name. This
didn't happen when the pool's application metadata 'cephfs' was
enabled before the pool was made the data pool. Fix this during the
handling of the 'add_data_pool' command by setting the value of
the 'data' key of the pool's application metadata 'cephfs' to the
filesystem's name even when the application metadata 'cephfs' is
already enabled or set.

Fixes: https://tracker.ceph.com/issues/43061
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 3c49092322720b7f1d612f45e73fb26820ff7885)
qa/tasks/cephfs/test_admin.py
src/mon/FSCommands.cc
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h