Incorrectly formatted Error message in brick/iscsi/iscsi.py

Bug #1402078 reported by John Griffith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Ivan Kolodyazhny
Juno
Fix Released
High
Gorka Eguileor

Bug Description

Currently in cinder.brick.iscsi.iscs:LioADM.create_iscsi_target
The Log message for the exception is: LOG.error("%s" % e), this rightfully results in:
*** UnicodeError: UnicodeError(u'Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.',)

Note there are other places in the file that have this problem, not just the create_target call and not just the LIO class.

Changed in cinder:
assignee: nobody → John Griffith (john-griffith)
summary: - Incorrectly formatted Error message in brick/iscsi/LIO
+ Incorrectly formatted Error message in brick/iscsi/iscsi.py
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by John Griffith (<email address hidden>) on branch: master
Review: https://review.openstack.org/142913
Reason: This is completely hosed anyway:
http://logs.openstack.org/13/142913/1/check/check-tempest-dsvm-full/bdbed05/logs/screen-c-vol.txt.gz#_2014-12-18_22_41_05_757

Mike Perez (thingee)
Changed in cinder:
milestone: none → kilo-2
importance: Undecided → Medium
importance: Medium → High
Mike Perez (thingee)
tags: added: juno-backport-potential
Mike Perez (thingee)
Changed in cinder:
status: In Progress → Triaged
assignee: John Griffith (john-griffith) → nobody
milestone: kilo-2 → kilo-3
no longer affects: cinder/juno
Ivan Kolodyazhny (e0ne)
Changed in cinder:
assignee: nobody → Ivan Kolodyazhny (e0ne)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: Triaged → In Progress
Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-3 → 2015.1.0
Revision history for this message
Gorka Eguileor (gorka) wrote :

I think this bug should not have been closed, as committed fix is for TGT and not LIO target which is the one that this bug is mentioning.

Revision history for this message
Gorka Eguileor (gorka) wrote :

This bug doesn't affect LIO on master anymore, even if this isn't the patch that fixed it.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/180645

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/juno)

Reviewed: https://review.openstack.org/180645
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=d89f493c2dc535b9110d222f3806d1a7fa208618
Submitter: Jenkins
Branch: stable/juno

commit d89f493c2dc535b9110d222f3806d1a7fa208618
Author: Gorka Eguileor <email address hidden>
Date: Wed May 6 19:25:35 2015 +0200

    Fix exceptions logging in iSCSI targets

    On multiple iSCSI target helpers you could get an unexpected exception
    regarding non-ascii chars if the volume name contained unicode
    characters.

    It could also happen if debugging was enabled and stdout contained unicode
    characters.

    To fix this we changed to delayed string interpolation and removed any
    force type translation of variables on iSCSI targets.

    Change-Id: I76bb87ff5f0014f27fda4c4d2bfff7a5e2bf1535
    Closes-Bug: #1402078

tags: added: in-stable-juno
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.