Encoding Chinese error when operate network

Bug #1873177 reported by HYSong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)
New
Undecided
Unassigned

Bug Description

I find that there are same encoding errors occurred when operating network use openstack client.

________________________________
scene1:
If the network/subnet/port/floating-ip created by horizon and named using Chinese,
it can not be shown by 'openstack network show <network-name>/openstack subnet show <subnet -name>/openstack port show <port-name>/openstack floating ip show <floating-ip-name>'

root@ctl01:~# openstack subnet show 测试子网
'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

scene2:
If the network/subnet/port/floating-ip who set Chinese description,
it can not be deleted by 'openstack network delete <network-id>/openstack subnet delete <subnet -id>/openstack floating ip delete <floating-ip-id>'

root@ctl01:~# openstack network create test --description 测试

root@ctl01:~# openstack network delete test
Failed to delete network with name or ID 'test': 'ascii' codec can't encode characters in position 392-393: ordinal not in range(128)
1 of 1 networks failed to delete.

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.