]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/FSCommands: Fix 'fs new' command 34775/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 16:06:23 +0000 (21:36 +0530)
commite11fb7cfddec03fb9d9433cb0af99fbf02a48962
treea0ba0e2521db2583212a23e87588672fe2fbc636
parentad1f8441683b2bc7135667fcb226db50654ea054
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