]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: create/delete fs subvolumes 26423/head
authorRamana Raja <rraja@redhat.com>
Thu, 14 Feb 2019 09:41:02 +0000 (15:11 +0530)
committerRamana Raja <rraja@redhat.com>
Thu, 14 Feb 2019 10:07:40 +0000 (15:37 +0530)
... 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 <rraja@redhat.com>
src/pybind/mgr/volumes/module.py

index 4d67c2070453d718df842c0498cde18a6b29477c..d5d65eac8838fd2e04b1ca5f43319a123190f4fb 100644 (file)
@@ -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)