From: Ramana Raja Date: Thu, 14 Feb 2019 09:41:02 +0000 (+0530) Subject: mgr/volumes: create/delete fs subvolumes X-Git-Tag: v14.1.0~98^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26423%2Fhead;p=ceph.git mgr/volumes: create/delete fs subvolumes ... within the specified fs volume. Previously, subvolumes (fs subdirectories) weren't created within the desired volumes (fs filestyems). Fixes: https://tracker.ceph.com/issues/38297 Signed-off-by: Ramana Raja --- diff --git a/src/pybind/mgr/volumes/module.py b/src/pybind/mgr/volumes/module.py index 4d67c2070453..d5d65eac8838 100644 --- a/src/pybind/mgr/volumes/module.py +++ b/src/pybind/mgr/volumes/module.py @@ -210,7 +210,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): # TODO: validate that subvol size fits in volume size - with CephFSVolumeClient(rados=self.rados) as vc: + with CephFSVolumeClient(rados=self.rados, fs_name=vol_name) as vc: # TODO: support real subvolume groups rather than just # always having them 1:1 with subvolumes. vp = VolumePath(sub_name, sub_name) @@ -229,7 +229,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): vol_fscid = fs['id'] - with CephFSVolumeClient(rados=self.rados) as vc: + with CephFSVolumeClient(rados=self.rados, fs_name=vol_name) as vc: # TODO: support real subvolume groups rather than just # always having them 1:1 with subvolumes. vp = VolumePath(sub_name, sub_name)