Some v2 exceptions raise unicodeError

Bug #1339775 reported by Stuart McLaren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Unassigned

Bug Description

In v2, for some exceptions the exception is not converted to a string properly resulting in:

2014-07-09 15:36:38,714 INFO msg = _("Image exceeds the storage quota: %s") % e
2014-07-09 15:36:38,714 INFO File "glance/openstack/common/gettextutils.py", line 333, in __str__
2014-07-09 15:36:38,714 INFO raise UnicodeError(msg)

in some cases 'utils.exception_to_str' is used to cast the exception.

We should do this in all cases for consistency/to avoid the stack trace

Revision history for this message
Nikhil Komawar (nikhil-komawar) wrote :
Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/105776
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=6b8d72df08e4b70b8de4b9797ae1c03be64e0072
Submitter: Jenkins
Branch: master

commit 6b8d72df08e4b70b8de4b9797ae1c03be64e0072
Author: Stuart McLaren <email address hidden>
Date: Wed Jul 9 15:59:48 2014 +0000

    Some v2 exceptions raise unicodeError

    Use utils.exception_to_str to consistently cast the
    excpetion to avoid the unicodeError stack trace.

    Change-Id: I54fce91c73adca846ec99ed50a57b95d16428ec1
    Closes-Bug: #1339775

Changed in glance:
status: In Progress → Fix Committed
Changed in glance:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: juno-2 → 2014.2
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.