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.
Updated by Jason Dillaman about 5 years ago
- Project changed from Ceph to RADOS
- Category deleted (
librados) - Status changed from New to 12
- Priority changed from Normal to High
- Backport set to luminous,mimic
Updated by Jason Dillaman about 5 years ago
- Status changed from 12 to In Progress
- Assignee set to Jason Dillaman
Updated by Jason Dillaman about 5 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 26514
Updated by Greg Farnum about 5 years ago
Updated by Kefu Chai about 5 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler about 5 years ago
- Copied to Backport #38872: mimic: Rados.get_fsid() returning bytes in python3 added
Updated by Nathan Cutler about 5 years ago
- Copied to Backport #38873: luminous: Rados.get_fsid() returning bytes in python3 added
Updated by Jason Dillaman almost 5 years ago
- Backport changed from luminous,mimic to luminous,mimic,nautilus
Updated by Jason Dillaman almost 5 years ago
- Copied to Backport #40192: nautilus: Rados.get_fsid() returning bytes in python3 added
Updated by Nathan Cutler almost 5 years ago
- Status changed from Pending Backport to Resolved