useless 'u' in the return info of many openstackclient properties

Bug #1538015 reported by hgangwx
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
Won't Fix
Low
Unassigned

Bug Description

[Summary]
useless 'u' in the return info of "openstack volume show"

[Topo]
devstack all-in-one node

[Description and expect result]
no useless 'u' in the return info of "openstack volume show"

[Reproduceable or not]
reproduceable

[Recreate Steps]
1) create a volume with metadata configed:
root@45-59:~# openstack volume show vol2
+---------------------------------------+--------------------------------------+
| Field | Value |
+---------------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2016-01-26T11:47:48.000000 |
| description | None |
| encrypted | False |
| id | 7f33b901-67e2-4625-818e-650744cb15b6 |
| metadata | {u'abc': u'100'} >>>ISSUE |
| migration_status | None |
| multiattach | False |
| name | vol2 |
| os-vol-host-attr:host | None |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | e88840d981e2457595baed077ed2aac8 |
| os-volume-replication:driver_data | None |
| os-volume-replication:extended_status | None |
| replication_status | disabled |
| size | 123 |
| snapshot_id | None |
| source_volid | None |
| status | error |
| updated_at | 2016-01-26T11:47:48.000000 |
| user_id | 9d619f44512a4289a670332300f1089c |
| volume_type | lvmdriver-1 |
+---------------------------------------+--------------------------------------+
root@45-59:~#

[Configration]
reproduceable bug, no need

[logs]
reproduceable bug, no need

[Root cause anlyze or debug inf]
reproduceable bug

[Attachment]
None

hgangwx (hgangwx)
affects: nova → cinder
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

This is how python displays a unicode string.

Changed in cinder:
status: New → Invalid
Revision history for this message
hgangwx (hgangwx) wrote :

Actually it can be fixed, below bug for reference:
https://bugs.launchpad.net/neutron/+bug/1531418

Changed in cinder:
status: Invalid → New
Changed in cinder:
importance: Undecided → Low
assignee: nobody → Sheel Rana (ranasheel2000)
Changed in cinder:
status: New → Confirmed
Ivan Kolodyazhny (e0ne)
affects: cinder → python-cinderclient
affects: python-cinderclient → python-openstackclient
AMIT KUMAR (maurya0092)
Changed in python-openstackclient:
assignee: Sheel Rana (ranasheel2000) → AMIT KUMAR (maurya0092)
Revision history for this message
Steve Martinelli (stevemar) wrote :

Automatically unassigning due to inactivity.

Changed in python-openstackclient:
assignee: AMIT KUMAR (maurya0092) → nobody
summary: - useless 'u' in the return info of "openstack volume show"
+ useless 'u' in the return info of many openstackclient properties
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (feature/osc4)

Fix proposed to branch: feature/osc4
Review: https://review.openstack.org/493814

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (master)

Change abandoned by Rui Chen (<email address hidden>) on branch: master
Review: https://review.openstack.org/445794
Reason: Recommit the patch on feature/osc4 branch, close this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (feature/osc4)

Reviewed: https://review.openstack.org/493814
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=ff9bd34b3c63c22c96d7a0711939828a38f003d8
Submitter: Jenkins
Branch: feature/osc4

commit ff9bd34b3c63c22c96d7a0711939828a38f003d8
Author: Rui Chen <email address hidden>
Date: Fri Mar 10 17:32:44 2017 +0800

    [Compute]Make column content readable for both human and machine

    Currently, we use utils.format_dict(), utils.format_list(),
    utils.format_list_of_dicts to make column value can be easy to read by
    human, but osc support to format the CLI output into several format,
    like: json, shell, csv, yaml, most of these should be understand by
    program and code, so keeping the column content as the original value
    make sense, like {u'name': u'RuiChen'} than name='RuiChen'

    The patch include all compute commands.

    Change-Id: I313a52f94895625e6045df870320840fee157759
    Implements: blueprint osc-formattable-columns
    Partial-Bug: #1538015
    Partial-Bug: #1538006

tags: added: in-feature-osc4
Artem Goncharov (gtema)
Changed in python-openstackclient:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.