Bug 1329734

Summary: utf8 characters in servers, routers, networks, etc cause issues with CLI being piped or redirected to a file
Product: [Community] RDO Reporter: Kambiz Aghaiepour <kambiz>
Component: openstack-neutronAssignee: lpeer <lpeer>
Status: CLOSED EOL QA Contact: Ofer Blaut <oblaut>
Severity: low Docs Contact:
Priority: unspecified    
Version: LibertyCC: chrisw, srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:47:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kambiz Aghaiepour 2016-04-22 18:56:39 UTC
Description of problem:

Frequently we see commands such as :

   nova list
or 
   neutron router-list

error out, if the output is piped or redirected to another program or output file.  The error will read:

'ascii' codec can't encode characters in position 1754-1766: ordinal not in range(128)

and not output is given.  If however the same exact command is not redirected or piped, it is displayed on the screen without any issues.  This appears to happen when some user has created a router, or a vm, with a special character in the name.

To capture the output we have resorted to a workaround of running the command in screen and then working with the output file.  e.g.

   screen -L -D -m neutron router-list

will capture the output in ~/screenlog.0

This is a cludgy workaround and I was hoping there is a more proper fix.

Kambiz

Sorry I don't know which component this fits into.  It's not specifically a neutron issue but likely some common library.

Comment 1 Chandan Kumar 2016-05-19 15:47:46 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.