Snapshot create fails using non-ASCII name or description

Bug #1527184 reported by Hiroki Tani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

Snapshot create fails using non-ASCII name or descriptions. Creating snapshot stop in status "creating" and "UnicodeDecodeError" is written in cinder/volume.log.

OS: CentOS 7.0
OpenStack version: Liberty (PackStack All in one deployment)
Cinder version: openstack-cinder-7.0.0-1.el7.noarch
Volume backend : scaleio (lvm cause this bug too)

Steps to reproduce:
# cinder snapshot-create --name snapshotα volume
# cinder snapshot-list
+--------------------------------------+--------------------------------------+----------+-----------+------+
| ID | Volume ID | Status | Name | Size |
+--------------------------------------+--------------------------------------+----------+-----------+------+
| fb90cc5c-3c8b-4594-a011-f502fd51b1d1 | 4ce44a3e-a9f9-4ab3-9890-c2ccd6e495d6 | creating | snapshotα | 1 |
+--------------------------------------+--------------------------------------+----------+-----------+------+

Get the following error:
http://paste.openstack.org/show/482172/
(part of /var/log/cinder/volume.log)

Revision history for this message
aditi sharma (adi-sky17) wrote :

yes i have checked it on kilo version got the same errors, however when using non-ascii character with volume name it works fine.

Changed in cinder:
assignee: nobody → aditi sharma (adi-sky17)
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
aditi sharma (adi-sky17) wrote :

Hello Hiroki, this bug is duplicate of the Bug #1514325 , you can chek it. The issue is with osprofiler/profiler.py which is converting args to string, and python using default encoding as ascii, so the the value passed to cinder-volume should be properly encoded

Changed in cinder:
status: In Progress → Invalid
assignee: aditi sharma (adi-sky17) → nobody
description: updated
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.