]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/FSCommands: Fix 'fs new' command 34774/head
authorRamana Raja <rraja@redhat.com>
Tue, 14 Apr 2020 11:13:33 +0000 (16:43 +0530)
committerRamana Raja <rraja@redhat.com>
Mon, 27 Apr 2020 15:36:58 +0000 (21:06 +0530)
commit9bce9399580d26ad58ad3e11eec0de4e25d14c52
tree8ec274145408236265206e34e80f557cfd25f1e4
parent2eea3a19f620f97a4e543ee1dc72dd16b9713e90
mon/FSCommands: Fix 'fs new' command

After creating a filesystem using the 'fs new' command, the value
of the 'data' and 'metadata' key of the datapool and metadatapool's
application tag 'cephfs' should be the filesystem's name. This
didn't happen when the data or metadata pool's application metadata
'cephfs' was enabled before the pool was used in the 'fs new' command.
Fix this during the handling of the 'fs new' command by setting the
value of the 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/43761
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 2f45558eb84782e334d997e2c545fd99ab455783)
qa/tasks/cephfs/test_admin.py
src/mon/FSCommands.cc