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>
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):