]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/FSCommands: Tag pools used for cephfs by default
authorDouglas Fuller <dfuller@redhat.com>
Wed, 23 Aug 2017 20:34:21 +0000 (16:34 -0400)
committerDouglas Fuller <dfuller@redhat.com>
Wed, 25 Oct 2017 19:34:13 +0000 (15:34 -0400)
On FS creation, add the cephfs application pool tag, plus
key "metadata" : value <fs_name> (for metadata pools)
key "data" : value <fs_name> (for data pools)

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
src/mon/FSCommands.cc

index 49d4bf5cd9d6ef8ecc4572d3ace3e3a9be1a60fa..26be188458f5dc31feca2d0e71ee2e24288e71c6 100644 (file)
@@ -195,9 +195,11 @@ class FsNewHandler : public FileSystemCommandHandler
       return -EAGAIN;
     }
     mon->osdmon()->do_application_enable(data,
-                                        pg_pool_t::APPLICATION_NAME_CEPHFS);
+                                        pg_pool_t::APPLICATION_NAME_CEPHFS,
+                                        "data", fs_name);
     mon->osdmon()->do_application_enable(metadata,
-                                        pg_pool_t::APPLICATION_NAME_CEPHFS);
+                                        pg_pool_t::APPLICATION_NAME_CEPHFS,
+                                        "metadata", fs_name);
     mon->osdmon()->propose_pending();
 
     // All checks passed, go ahead and create.
@@ -522,7 +524,9 @@ class AddDataPoolHandler : public FileSystemCommandHandler
       mon->osdmon()->wait_for_writeable(op, new PaxosService::C_RetryMessage(mon->mdsmon(), op));
       return -EAGAIN;
     }
-    mon->osdmon()->do_application_enable(poolid, pg_pool_t::APPLICATION_NAME_CEPHFS);
+    mon->osdmon()->do_application_enable(poolid,
+                                        pg_pool_t::APPLICATION_NAME_CEPHFS,
+                                        "data", poolname);
     mon->osdmon()->propose_pending();
 
     fsmap.modify_filesystem(