Floating ip delete failed if Chinese in description

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

Bug Description

Floating ip delete failed if Chinese in description when executing
'openstack floating ip delete <floating-ip-id>'.

-------------------------------
root@ctl01:~# openstack floating ip create f4790efe-5df0-4f04-991b-a3c105e63b71 --description 测试
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| created_at | 2020-04-14T01:39:43Z |
| description | 测试 |
| fixed_ip_address | None |
| floating_ip_address | 10.110.26.135 |
| floating_network_id | f4790efe-5df0-4f04-991b-a3c105e63b71 |
| id | 7baf8eed-ad2d-4741-b2d6-a5fe50325448 |
| name | 10.110.26.135 |
| port_id | None |
| project_id | 1fc145617d5e4e97bad32c98b5d9b7c0 |
| qos_policy_id | None |
| revision_number | 0 |
| router_id | None |
| status | DOWN |
| subnet_id | None |
| updated_at | 2020-04-14T01:39:43Z |
+---------------------+--------------------------------------+

root@ctl01:~# openstack floating ip delete 7baf8eed-ad2d-4741-b2d6-a5fe50325448
Failed to delete floating_ip with name or ID '7baf8eed-ad2d-4741-b2d6-a5fe50325448': 'ascii' codec can't encode characters in position 85-86: ordinal not in range(128)
1 of 1 floating_ips failed to delete.

root@ctl01:~# openstack floating ip delete 7baf8eed-ad2d-4741-b2d6-a5fe50325448 --debug
GET call to network for http://10.110.28.20:9696/v2.0/floatingips/7baf8eed-ad2d-4741-b2d6-a5fe50325448 used request id req-86208a29-d7fd-4e08-be71-98846861c08b
Manager cn-north-3 ran task network.GET.floatingips in 0.481611967087s
Failed to delete floating_ip with name or ID '7baf8eed-ad2d-4741-b2d6-a5fe50325448': 'ascii' codec can't encode characters in position 85-86: ordinal not in range(128)
1 of 1 floating_ips failed to delete.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 137, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/dist-packages/openstackclient/network/common.py", line 125, in take_action
    raise exceptions.CommandError(msg)
CommandError: 1 of 1 floating_ips failed to delete.
clean_up DeleteFloatingIP: 1 of 1 floating_ips failed to delete.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 134, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 169, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 137, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/dist-packages/openstackclient/network/common.py", line 125, in take_action
    raise exceptions.CommandError(msg)
CommandError: 1 of 1 floating_ips failed to delete.

END return value: 1

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.