Bug #38381
closedRados.get_fsid() returning bytes in python3
0%
Description
Hello,
I've found a bug in librados which causing big issues in Openstack projects (glance_store, cinder, nova).
Librados's function get_fsid returning string in py2, but unfortunatelly bytes in python3.
More informations related to Openstack can be found here => https://bugs.launchpad.net/cinder/+bug/1816468
How to reproduce ?
Py3 :
root@openstack-controller:~# ipython3
In [1]: import rados
In [2]: from rados import Rados
In [3]: client = Rados(rados_id='admin', clustername='ceph', conffile='/etc/ceph/ceph.conf')
In [4]: client.connect()
In [5]: client.get_fsid()
Out5: b'868c2b5d-12f1-4f3f-aa2a-5701a3bb1041'
Py2:
import rados
from rados import Rados
client = Rados(rados_id='admin', clustername='ceph', conffile='/etc/ceph/ceph.conf')
client.connect()
client.get_fsid()
'868c2b5d-12f1-4f3f-aa2a-5701a3bb1041'
Expected return from get_fsid is id in String format.