unicode metadata breaks cinderclient show command

Bug #1693713 reported by Alexey Stupnikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Alexey Stupnikov

Bug Description

It is impossible to use 'cinder show' command if we add some unicode metadata to volume.

Steps to reproduce:

1. Create a volume and add unicode metadata
2. Try to show volume's properties with 'cinder show VOL-ID' command

Expected result:
Volume properties are printed at the CLI

Actual result:
# cinder show bd539719-245c-4e91-bfbc-b81e4d247c15 | grep ' metadata '
ERROR: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/python-cinderclient (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Yuriy Nesenenko <email address hidden>
Review: https://review.fuel-infra.org/35455

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to mos-infra/mos-requirements (master)

Related fix proposed to branch: master
Change author: Alexey Stupnikov <email address hidden>
Review: https://review.fuel-infra.org/35493

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on mos-infra/mos-requirements (master)

Change abandoned by Alexey Stupnikov <email address hidden> on branch: master
Review: https://review.fuel-infra.org/35493
Reason: Useless to merge.

Changed in mos:
milestone: 9.x-updates → 9.2-mu-3
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/python-cinderclient (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/35455
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: 9e78c026f42fec2340f52a7dcde694fce8404c0d
Author: Yuriy Nesenenko <email address hidden>
Date: Thu Jun 1 10:25:22 2017

Fix Unicode error printing extra-specs

If type-key is set to unicode the command cinder extra-specs-list
fails with the ERROR: 'ascii' codec can't encode characters in position.
This patch fixes it.

Change-Id: Id82bfbe8870351605f53c7ca029b9aa7e6089f6a
Closes-Bug: #1693713
Related-Bug: #1622629

Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Vladimir Jigulin (vjigulin) wrote :

Verified on 9.0-2017-09-01 snapshot
With proposed:
root@node-1:~# cinder show 323eb307-44b6-4ad1-beac-ea5e51c4e6f0|grep metadata
| metadata | {u'test': u'\u0442\u0435\u0441\u0442'} |

Changed in mos:
status: Fix Committed → Fix Released
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.