← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1518141] Re: Some special characters used in display_name cause issues.

 

I tried this ,so I think it's a bug in novaclient

jichen@devstack1:~$ nova rename t1 及
jichen@devstack1:~$ nova list
ERROR (UnicodeEncodeError): 'ascii' codec can't encode character u'\u53ca' in position 0: ordinal not in range(128)


DEBUG (connectionpool:387) "GET /v2.1/d1c5aa58af6c426492c642eb649017be/servers/detail HTTP/1.1" 200 2045
DEBUG (session:216) RESP: [200] Content-Length: 2045 X-Compute-Request-Id: req-fbf5ad5c-72e7-4c56-afea-28b1f313d605 Vary: X-OpenStack-Nova-API-Version Connection: keep-alive X-Openstack-Nova-Api-Version: 2.6 Date: Mon, 23 Nov 2015 10:48:51 GMT Content-Type: application/json
RESP BODY: {"servers": [{"status": "ACTIVE", "OS-EXT-SRV-ATTR:ramdisk_id": "960df433-efe0-4744-a4fb-828059170e4a", "updated": "2015-11-23T10:48:08Z", "hostId": "c6756a173c3668e5edfc570e437e01695989d1992bcfd920d8653918", "OS-EXT-SRV-ATTR:host": "devstack1", "addresses": {"private": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:31:e8:bd", "version": 4, "addr": "10.0.0.2", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://192.168.122.239:8774/v2.1/d1c5aa58af6c426492c642eb649017be/servers/e5d86f12-0ab2-4d3c-95a1-9951845f644e";, "rel": "self"}, {"href": "http://192.168.122.239:8774/d1c5aa58af6c426492c642eb649017be/servers/e5d86f12-0ab2-4d3c-95a1-9951845f644e";, "rel": "bookmark"}], "key_name": null, "image": {"id": "9eee793a-25e5-4f42-bd9e-b869e60d3dbd", "links": [{"href": "http://192.168.122.239:8774/d1c5aa58af6c426492c642eb649017be/images/9eee793a-25e5-4f42-bd9e-b869e60d3dbd";, "rel": "bookmark"}]}, "OS-EXT-SRV-ATTR:user_data": null, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000001", "OS-EXT-SRV-ATTR:root_device_name": "/dev/vda", "OS-SRV-USG:launched_at": "2015-11-12T12:24:17.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "devstack1", "flavor": {"id": "84", "links": [{"href": "http://192.168.122.239:8774/d1c5aa58af6c426492c642eb649017be/flavors/84";, "rel": "bookmark"}]}, "id": "e5d86f12-0ab2-4d3c-95a1-9951845f644e", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-SRV-ATTR:kernel_id": "638edb53-e796-4f8c-b2a6-435e062222b2", "OS-EXT-AZ:availability_zone": "nova", "user_id": "eb66e3bddd1046b8ac12ca3187eb2a5d", "name": "\u53ca", "OS-EXT-SRV-ATTR:launch_index": 0, "created": "2015-11-12T12:23:56Z", "tenant_id": "d1c5aa58af6c426492c642eb649017be", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "OS-EXT-SRV-ATTR:reservation_id": "r-crtbvkzw", "OS-EXT-SRV-ATTR:hostname": "t1", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "True", "metadata": {"a": "e"}}]}

DEBUG (shell:909) 'ascii' codec can't encode character u'\u53ca' in position 0: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 907, in main
    OpenStackComputeShell().main(argv)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 834, in main
    args.func(self.cs, args)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 1451, in do_list
    formatters, sortby_index=sortby_index)
  File "/usr/local/lib/python2.7/dist-packages/novaclient/utils.py", line 101, in print_list
    data = str(data).replace("\r", "")
UnicodeEncodeError: 'ascii' codec can't encode character u'\u53ca' in position 0: ordinal not in range(128)
ERROR (UnicodeEncodeError): 'ascii' codec can't encode character u'\u53ca' in position 0: ordinal not in range(128)


** Project changed: nova => python-novaclient

** Changed in: python-novaclient
   Importance: Undecided => Low

** Changed in: python-novaclient
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1518141

Title:
  Some special characters used in display_name cause issues.

Status in Cinder:
  New
Status in python-novaclient:
  Confirmed

Bug description:
  One of our Asian users created new instance with roman numeral 2 in its name. Looks similar to "II" but it is one character.
  This has caused us issues with CLI trying to list instances "nova list" etc.. did not work. Just a small one nothing major, renamed the instance and all working fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1518141/+subscriptions


References