From: Rishabh Dave Date: Tue, 4 Jun 2019 12:26:11 +0000 (+0530) Subject: mgr/volumes: convert string to bytes object X-Git-Tag: v15.1.0~2569^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a203e577098d82a6d0dea86757c9e83dccdba78d;p=ceph-ci.git mgr/volumes: convert string to bytes object 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 --- diff --git a/src/pybind/mgr/volumes/fs/subvolume.py b/src/pybind/mgr/volumes/fs/subvolume.py index 40327e5c5a5..40122dcf43f 100644 --- a/src/pybind/mgr/volumes/fs/subvolume.py +++ b/src/pybind/mgr/volumes/fs/subvolume.py @@ -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):