tags field with unicode cannot be correctly displayed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
High
|
Zhenyu Zheng | ||
Ocata |
Fix Committed
|
High
|
Matt Riedemann |
Bug Description
When show instances with unicode tags, Chinese tags for example, it cannot be correctly
transformed: as the example below, name can be correctly transformed, but tags can't
root@zhenyu-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2017-03-
| description | - |
| flavor | m1.tiny (1) |
| hostId | d54347428394f3e
| host_status | UP |
| id | 61bece8b-
| image | cirros-
| key_name | - |
| locked | False |
| metadata | {} |
| name | 中文 |
| os-extended-
| private network | fdd5:9210:
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tags | ["\u4e00\
| tenant_id | b7c4a4d1de6b43f
| updated | 2017-03-
| user_id | 59984487adce478
+------
this is due to dict and list field are first transformed to string using jsondump:
http://
and thus cannot be correctly decoded afterwards.
And seems metadata will have the same problem as the operation is done to dict and list
fields.
description: | updated |
Changed in python-novaclient: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/440949
Review: https:/