RBDImageMetadata doesn't work with Python3

Bug #1612290 reported by Ivan Kolodyazhny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
Undecided
Ivan Kolodyazhny

Bug Description

Patch https://review.openstack.org/#/c/326696/ introduced incorrect behavior with Python 3. encodeutils.safe_encode returns byte type for Python 3 and it breaks work with librbd [1]

[1] http://logs.openstack.org/99/326999/4/check/gate-cinder-python34-db/02f7c18/

Ivan Kolodyazhny (e0ne)
Changed in os-brick:
assignee: nobody → Ivan Kolodyazhny (e0ne)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (master)

Fix proposed to branch: master
Review: https://review.openstack.org/354152

Changed in os-brick:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (master)

Reviewed: https://review.openstack.org/354152
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=91ac58fe773d42df8d8a7aaacfb6fe952943b80d
Submitter: Jenkins
Branch: master

commit 91ac58fe773d42df8d8a7aaacfb6fe952943b80d
Author: Ivan Kolodyazhny <email address hidden>
Date: Thu Aug 11 18:17:19 2016 +0300

    Fix linuxrbd to work with Python 3

    All string args used with librbd must be None or utf-8 otherwise
    librbd will break. This patch uses convert_str instead of
    oslo_utils.encodeutils.

    Change-Id: I77aad9f8ddd1b7175ee1521a43d16511059a9ad0
    Closes-Bug: #1612290

Changed in os-brick:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/os-brick 1.6.0

This issue was fixed in the openstack/os-brick 1.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/os-brick 1.6.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.