RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1167945 - Random characters in instacne name break volume attaching
Summary: Random characters in instacne name break volume attaching
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-cinder
Version: Juno
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Juno
Assignee: Eric Harney
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-25 16:55 UTC by Lukas Bezdicka
Modified: 2016-04-26 20:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-10 00:13:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Lukas Bezdicka 2014-11-25 16:55:33 UTC
Description of problem:
2014-11-25 11:49:39.146 5986 ERROR cinder.api.middleware.fault [req-de4abd16-3854-4280-8218-23aed98b69d3 3e385875be4247afa85941ddcf72b2da 8cb1229bf57d4732911db4a50790c62c - - -] Caught error: Message objects do not support str() because t
hey may contain non-ascii characters. Please use unicode() or translate() instead.
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
    incoming.message))

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
    result = getattr(endpoint, method)(ctxt, **new_args)

  File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 875, in initialize_connection
    volume)

  File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
    return f(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 548, in create_export
    return self._create_export(context, volume)

  File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 560, in _create_export
    self.configuration)

  File "/usr/lib/python2.7/site-packages/cinder/volume/iscsi.py", line 57, in create_export
    conf.iscsi_write_cache)

  File "/usr/lib/python2.7/site-packages/cinder/brick/iscsi/iscsi.py", line 523, in create_iscsi_target
    LOG.error("%s" % e)

  File "/usr/lib/python2.7/site-packages/oslo/i18n/_message.py", line 167, in __str__
    raise UnicodeError(msg)

UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.


Version-Release number of selected component (if applicable):
python-cinderclient-1.1.1-1.fc22.noarch
openstack-cinder-2014.2-1.fc22.noarch
python-cinder-2014.2-1.fc22.noarch

How reproducible:
always

Steps to Reproduce:
1. create instance with name for example "  a324113<>P{" or any unicode character
2. create volume (you may also try random chars in name)
3. try to attach the volume

Actual results:
attachment fails

Expected results:
it should attach volume to instance

Additional info:

Comment 1 Eric Harney 2016-03-10 00:13:35 UTC
This seems to be fixed in Kilo.


Note You need to log in before you can comment on or make changes to this bug.