From a203e577098d82a6d0dea86757c9e83dccdba78d Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 4 Jun 2019 17:56:11 +0530 Subject: [PATCH] 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 --- src/pybind/mgr/volumes/fs/subvolume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/fs/subvolume.py b/src/pybind/mgr/volumes/fs/subvolume.py index 40327e5c5a54..40122dcf43f1 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): -- 2.47.3