From 90a317b09c6594c3a73a25be89235cff489c2d7b Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Thu, 14 Feb 2019 15:11:02 +0530 Subject: [PATCH] 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 --- src/pybind/mgr/volumes/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/volumes/module.py b/src/pybind/mgr/volumes/module.py index 4d67c2070453d..d5d65eac8838f 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) -- 2.39.5