there is useless 'u' in the wrong info when execute a wrong neutron command

Bug #1533089 reported by hgangwx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cliff
Confirmed
Low
linwei,wu

Bug Description

[Summary]
there is useless 'u' in the wrong info when execute a wrong neutron command

[Topo]
devstack all-in-one node

[Description and expect result]
no useless 'u' in the wrong info when execute a wrong neutron command

[Reproduceable or not]
reproduceable

[Recreate Steps]
1) there is useless 'u' in the wrong info when execute a wrong neutron command:
root@45-59:/opt/stack/devstack# neutron wrongcmd
Unknown command [u'wrongcmd'] >>>ISSUE
root@45-59:/opt/stack/devstack#

2)below is a correct example for reference:
root@45-59:/opt/stack/devstack# keystone wrongcmd
usage: keystone [--version] [--debug] [--os-username <auth-user-name>]
                [--os-password <auth-password>]
                [--os-tenant-name <auth-tenant-name>]
                [--os-tenant-id <tenant-id>] [--os-auth-url <auth-url>]
                [--os-region-name <region-name>]
                [--os-identity-api-version <identity-api-version>]
                [--os-token <service-token>]
                [--os-endpoint <service-endpoint>] [--os-cache]
                [--force-new-token] [--stale-duration <seconds>] [--insecure]
                [--os-cacert <ca-certificate>] [--os-cert <certificate>]
                [--os-key <key>] [--timeout <seconds>]
                <subcommand> ...
keystone: error: argument <subcommand>: invalid choice: 'wrongcmd'

[Configration]
reproduceable bug, no need

[logs]
reproduceable bug, no need

[Root cause anlyze or debug inf]
reproduceable bug

[Attachment]
None

Ayush Garg (ayushgrg93)
Changed in neutron:
assignee: nobody → Ayush Garg (ayushgrg93)
Revision history for this message
Manjeet Singh Bhatia (manjeet-s-bhatia) wrote :

I have one node devstack

with keystone and neutron origin/master.

i see the correct output you showed in 2).

is this really a neutron bug ?

Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

This is NOT a neutron bug, its actually a NeutronClient bug.
@manjeet-s-bhatia:
I could see the issue in (1) with a single node devstack.
Besides, a similar issue is already logged for it affecting a different CLI.
https://bugs.launchpad.net/python-neutronclient/+bug/1531418

I think it would be great if all the NeutronClient CLI can be verified for Unicode issues in one bug, than reporting them separately.

affects: neutron → python-neutronclient
Akihiro Motoki (amotoki)
Changed in python-neutronclient:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
linwei,wu (wlwwu) wrote :

I think that we should fix from cliff side.

Changed in python-neutronclient:
assignee: Ayush Garg (ayushgrg93) → linwei,wu (wlwwu)
affects: python-neutronclient → cliff
Revision history for this message
linwei,wu (wlwwu) wrote :

https://review.openstack.org/#/c/273392/

there is in progress fix branch here

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.