Fuel CLI doesn’t understand unicode env name

Bug #1318509 reported by Mike Scherbakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Kamil Sambor

Bug Description

ISO #189, fuel-web sha: 8979fe920790c8143fee747245e13d42fe0f2db6

Steps to reproduce:
Create new env via UI, name it “привет”
run “fuel env”. Exception is raised:
[root@fuel ~]# fuel env
Traceback (most recent call last):
  File "/usr/bin/fuel", line 9, in <module>
    load_entry_point('fuelclient==0.2', 'console_scripts', 'fuel')()
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/error.py", line 70, in wrapper
    handle_exceptions(exc)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/error.py", line 68, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/parser.py", line 144, in main
    parser.parse()
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/parser.py", line 76, in parse
    actions[parsed_params.action].action_func(parsed_params)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/actions/base.py", line 43, in action_func
    method(params)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/actions/environment.py", line 148, in list
    acceptable_keys=acceptable_keys
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/formatting.py", line 58, in format_table
    for index, element in enumerate(row)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/formatting.py", line 58, in <genexpr>
    for index, element in enumerate(row)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

Kamil Sambor (ksambor)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Kamil Sambor (ksambor)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/93401

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: none → 5.0
Changed in fuel:
milestone: 5.0 → 5.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/93401
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=db4d748801ce93b21a582a1252c7e29111b3553f
Submitter: Jenkins
Branch: master

commit db4d748801ce93b21a582a1252c7e29111b3553f
Author: Kamil Sambor <email address hidden>
Date: Tue May 13 11:24:34 2014 +0200

    Added support for unicode in client in fuelclient

    Added support for unicode in env names,
    Added test for unicode in creating env and getting env info

    Change-Id: I46ae80695bfdeffc68e10afde27cbb667ad7c318
    Closes-Bug: #1318509

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Egor Kotko (ykotko) wrote :

{u'build_id': u'2014-07-17_22-02-59', u'ostf_sha': u'9863db951a6e159f4fa6e6861c8331e1af069cf8', u'build_number': u'329', u'auth_required': False, u'nailgun_sha': u'0af26b4d29a7f540911466f2374e256e8c899e60', u'production': u'docker', u'api': u'1.0', u'fuelmain_sha': u'079bf8c7d80d1c957343ac217747fdce00f2f85a', u'astute_sha': u'd90cad0130da014eded5c21fa5f31054ce999dac', u'feature_groups': [u'mirantis'], u'release': u'5.1', u'fuellib_sha': u'baf62a223eaa610a47a964ee11110ee60830e5ac'}

Changed in fuel:
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.