Project

General

Profile

Bug #38381

Rados.get_fsid() returning bytes in python3

Added by Michal Arbet 4 months ago. Updated 7 days ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
-
Start date:
02/19/2019
Due date:
% Done:

0%

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

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

Copied to RADOS - Backport #38872: mimic: Rados.get_fsid() returning bytes in python3 Resolved
Copied to RADOS - Backport #38873: luminous: Rados.get_fsid() returning bytes in python3 Resolved
Copied to RADOS - Backport #40192: nautilus: Rados.get_fsid() returning bytes in python3 Resolved

History

#1 Updated by Jason Dillaman 4 months ago

  • Project changed from Ceph to RADOS
  • Category deleted (librados)
  • Status changed from New to Verified
  • Priority changed from Normal to High
  • Backport set to luminous,mimic

#2 Updated by Jason Dillaman 4 months ago

  • Status changed from Verified to In Progress
  • Assignee set to Jason Dillaman

#3 Updated by Jason Dillaman 4 months ago

  • Status changed from In Progress to Need Review
  • Pull request ID set to 26514

#5 Updated by Kefu Chai 3 months ago

  • Status changed from Need Review to Pending Backport

#6 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #38872: mimic: Rados.get_fsid() returning bytes in python3 added

#7 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #38873: luminous: Rados.get_fsid() returning bytes in python3 added

#8 Updated by Jason Dillaman 21 days ago

  • Backport changed from luminous,mimic to luminous,mimic,nautilus

#9 Updated by Jason Dillaman 21 days ago

  • Copied to Backport #40192: nautilus: Rados.get_fsid() returning bytes in python3 added

#10 Updated by Nathan Cutler 7 days ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF