]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/FSCommands: Fix 'fs new' command 34534/head
authorRamana Raja <rraja@redhat.com>
Tue, 14 Apr 2020 11:13:33 +0000 (16:43 +0530)
committerRamana Raja <rraja@redhat.com>
Wed, 15 Apr 2020 11:47:23 +0000 (17:17 +0530)
commit2f45558eb84782e334d997e2c545fd99ab455783
treeec2771a18b344d94171d337f9cafed6cafb4ed35
parent3c49092322720b7f1d612f45e73fb26820ff7885
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>
qa/tasks/cephfs/test_admin.py
src/mon/FSCommands.cc