emc-xchallenge / nova

OpenStack Compute (Nova)
http://openstack.org
Apache License 2.0
0 stars 3 forks source link

"nova-list" throws UnicodeEncodeError #6

Open jybuestc opened 8 years ago

jybuestc commented 8 years ago

Description: "nova-list" throws UnicodeEncodeError after boot an instance with Unicode name.

Project: OpenStack

Project Area: nova

Release: OpenStack

Severity: S1

Full Details: "nova-list" throws UnicodeEncodeError after boot an instance with Unicode name. stack@ubuntu:~$ nova boot --flavor 2 --block-device source=image,id=4e520107-f127-4f6d-80b8-25160f357192,dest=volume,shutdown=preserve,bootindex=0,size=20 --nic net-id=e101d2d7-40a4-4da1-bac2-ea1fc17e9849 CentOS_VM_虚拟机!! +--------------------------------------+-------------------------------------------------+ | Property | Value | +--------------------------------------+-------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | - | | OS-EXT-SRV-ATTR:hostname | centos-vm | | OS-EXT-SRV-ATTR:hypervisor_hostname | - | | OS-EXT-SRV-ATTR:instance_name | instance-00000006 | | OS-EXT-SRV-ATTR:kernel_id | | | OS-EXT-SRV-ATTR:launch_index | 0 | | OS-EXT-SRV-ATTR:ramdisk_id | | | OS-EXT-SRV-ATTR:reservation_id | r-icx4ga44 | | OS-EXT-SRV-ATTR:root_device_name | - | | OS-EXT-SRV-ATTR:user_data | - | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | adminPass | rWBpdLfvSK6F | | config_drive | | | created | 2015-11-24T00:48:45Z | | flavor | m1.small (2) | | hostId | | | id | 2ea10b1c-3bd1-429d-84e0-3bae24b74813 | | image | Attempt to boot from volume - no image supplied | | key_name | - | | metadata | {} | | name | CentOS_VM_虚拟机!! | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | security_groups | default | | status | BUILD | | tenant_id | 2f4dfcd601ab48d1a39809293011a3ef | | updated | 2015-11-24T00:48:46Z | | user_id | c5c1905a8f1f4c259dcb2a0fc70f903b | +--------------------------------------+-------------------------------------------------+ stack@ubuntu:~$ nova list ERROR (UnicodeEncodeError): 'ascii' codec can't encode characters in position 10-14: ordinal not in range(128)

stack@ubuntu:~$ nova show 2ea10b1c-3bd1-429d-84e0-3bae24b74813 +--------------------------------------+----------------------------------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | ubuntu | | OS-EXT-SRV-ATTR:hostname | centos-vm | | OS-EXT-SRV-ATTR:hypervisor_hostname | ubuntu | | OS-EXT-SRV-ATTR:instance_name | instance-00000006 | | OS-EXT-SRV-ATTR:kernel_id | | | OS-EXT-SRV-ATTR:launch_index | 0 | | OS-EXT-SRV-ATTR:ramdisk_id | | | OS-EXT-SRV-ATTR:reservation_id | r-icx4ga44 | | OS-EXT-SRV-ATTR:root_device_name | /dev/vda | | OS-EXT-SRV-ATTR:user_data | - | | OS-EXT-STS:power_state | 1 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | active | | OS-SRV-USG:launched_at | 2015-11-24T00:49:44.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2015-11-24T00:48:45Z | | flavor | m1.small (2) | | hostId | 6fa34f16d3c5dab00d270faedfa4994e7a68e6d2d0c912439d8f6656 | | id | 2ea10b1c-3bd1-429d-84e0-3bae24b74813 | | image | Attempt to boot from volume - no image supplied | | key_name | - | | metadata | {} | | name | CentOS_VM_虚拟机!! | | os-extended-volumes:volumes_attached | [{"id": "2339e416-6f73-44f5-be68-6bfeafd62737", "delete_on_termination": false}] | | private network | fd09:c9d3:c998:0:f816:3eff:fedc:f9e2, 10.0.0.5 | | progress | 0 | | security_groups | default | | status | ACTIVE | | tenant_id | 2f4dfcd601ab48d1a39809293011a3ef | | updated | 2015-11-24T00:49:45Z | | user_id | c5c1905a8f1f4c259dcb2a0fc70f903b | +--------------------------------------+----------------------------------------------------------------------------------+