From: Sage Weil Date: Thu, 19 Sep 2019 15:47:43 +0000 (-0500) Subject: mgr/volumes: do not specify pg_num X-Git-Tag: v15.1.0~1455^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=02a82abe5db986984af63c699f3e0ca62cff6799;p=ceph-ci.git mgr/volumes: do not specify pg_num Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/volumes/fs/volume.py b/src/pybind/mgr/volumes/fs/volume.py index 791eab5f332..c6e72a62a0a 100644 --- a/src/pybind/mgr/volumes/fs/volume.py +++ b/src/pybind/mgr/volumes/fs/volume.py @@ -211,9 +211,9 @@ class VolumeClient(object): """ return ve.to_tuple() - def create_pool(self, pool_name, pg_num): + def create_pool(self, pool_name): # create the given pool - command = {'prefix': 'osd pool create', 'pool': pool_name, 'pg_num': pg_num} + command = {'prefix': 'osd pool create', 'pool': pool_name} r, outb, outs = self.mgr.mon_command(command) if r != 0: return r, outb, outs @@ -261,10 +261,10 @@ class VolumeClient(object): """ metadata_pool, data_pool = self.gen_pool_names(volname) # create pools - r, outs, outb = self.create_pool(metadata_pool, 16) + r, outs, outb = self.create_pool(metadata_pool) if r != 0: return r, outb, outs - r, outb, outs = self.create_pool(data_pool, 8) + r, outb, outs = self.create_pool(data_pool) if r != 0: return r, outb, outs # create filesystem