]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: perform snapshot operations in 17921/head
authorRamana Raja <rraja@redhat.com>
Wed, 20 Sep 2017 14:57:22 +0000 (20:27 +0530)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Sep 2017 18:44:07 +0000 (11:44 -0700)
... client configured snap directory name, instead of in hard-coded
'.snap' directory.

Fixes: http://tracker.ceph.com/issues/21476
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit f4fc1722594ed007706b54901fb07a2a443d1b96)

src/pybind/ceph_volume_client.py

index 89722ec95e737470427dedf1546fc58e0c65b832..cd9605e919d7c2488049bc776d90d4d3e6b515d9 100644 (file)
@@ -31,7 +31,6 @@ class RadosError(Exception):
 
 
 RADOS_TIMEOUT = 10
-SNAP_DIR = ".snap"
 
 log = logging.getLogger(__name__)
 
@@ -1296,7 +1295,7 @@ class CephFSVolumeClient(object):
 
     def _snapshot_path(self, dir_path, snapshot_name):
         return os.path.join(
-            dir_path, SNAP_DIR, snapshot_name
+            dir_path, self.rados.conf_get('client_snapdir'), snapshot_name
         )
 
     def _snapshot_create(self, dir_path, snapshot_name):