]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volumes: convert string to bytes object
authorRishabh Dave <ridave@redhat.com>
Tue, 4 Jun 2019 12:26:11 +0000 (17:56 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 4 Jun 2019 14:35:00 +0000 (20:05 +0530)
mount method in libcephfs's cython modules expects filesystem_name to
be a bytes object. Therefore, convert string to bytes object
beforehand.

Fixes: http://tracker.ceph.com/issues/39750
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/mgr/volumes/fs/subvolume.py

index 40327e5c5a5453977c932f4642fee83389a2f03e..40122dcf43f13df970e27e2dd379492c8c2d93d9 100644 (file)
@@ -95,7 +95,7 @@ class SubvolumeClient(object):
         log.debug("CephFS initializing...")
         self.fs.init()
         log.debug("CephFS mounting...")
-        self.fs.mount(filesystem_name=self.fs_name)
+        self.fs.mount(filesystem_name=self.fs_name.encode('utf-8'))
         log.debug("Connection to cephfs complete")
 
     def disconnect(self):