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 #1

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
Actions #2

Updated by Jason Dillaman about 5 years ago

  • Status changed from 12 to In Progress
  • Assignee set to Jason Dillaman
Actions #3

Updated by Jason Dillaman about 5 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 26514
Actions #5

Updated by Kefu Chai about 5 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #6

Updated by Nathan Cutler about 5 years ago

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

Updated by Nathan Cutler about 5 years ago

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

Updated by Jason Dillaman almost 5 years ago

  • Backport changed from luminous,mimic to luminous,mimic,nautilus
Actions #9

Updated by Jason Dillaman almost 5 years ago

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

Updated by Nathan Cutler almost 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF