Project

General

Profile

Actions

Bug #38381

closed

Rados.get_fsid() returning bytes in python3

Added by Michal Arbet about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Jason Dillaman
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous,mimic,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.


Related issues 3 (0 open3 closed)

Copied to RADOS - Backport #38872: mimic: Rados.get_fsid() returning bytes in python3ResolvedPrashant DActions
Copied to RADOS - Backport #38873: luminous: Rados.get_fsid() returning bytes in python3ResolvedNathan CutlerActions
Copied to RADOS - Backport #40192: nautilus: Rados.get_fsid() returning bytes in python3ResolvedNathan CutlerActions
Actions

Also available in: Atom PDF