Ask Your Question

How to Delete Orphaned Neutron Port

asked 2019-11-20 08:17:55 -0500

jnemeiksis gravatar image

updated 2019-11-20 09:12:43 -0500


We running Rocky version and seems like have a big problem. We have a lot orphaned ports. We trying remove old unused network and we cannot do it because exists a lot orphaned ports.

Error output when trying remove one of the orphaned port:

DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "Binding for port 044f0c61-caf3-4144-b5bb-b2fdbfaa4f19 for host  could not be found.", "type": "PortBindingNotFound", "detail": ""}}
ERROR: Unable to find port(s) with id(s) '044f0c61-caf3-4144-b5bb-b2fdbfaa4f19'.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/neutronclient/", line 531, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.7/site-packages/neutronclient/", line 68, in run_command
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/", line 335, in run
    return super(NeutronCommand, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/", line 184, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/", line 517, in take_action
    self._bulk_delete(obj_deleter, neutron_client,
  File "/usr/lib/python2.7/site-packages/neutronclient/neutron/v2_0/", line 556, in _bulk_delete
    raise exceptions.NeutronCLIError(message='\n'.join(err_msgs))
NeutronCLIError: Unable to find port(s) with id(s) '044f0c61-caf3-4144-b5bb-b2fdbfaa4f19'.
Unable to find port(s) with id(s) '044f0c61-caf3-4144-b5bb-b2fdbfaa4f19'.
edit retag flag offensive close merge delete


Which command generates this message?

Does port 044f0c61-caf3-4144-b5bb-b2fdbfaa4f19 exist at all?

What do the Neutron logs say?

Bernd Bausch gravatar imageBernd Bausch ( 2019-11-20 09:10:54 -0500 )edit

This output generate neutron client command: neutron port-delete 044f0c61-caf3-4144-b5bb-b2fdbfaa4f19 -v I tried openstack cli, but the same situation. Neutron sever output: DELETE failed (client error): The resource could not be found.

jnemeiksis gravatar imagejnemeiksis ( 2019-11-20 10:37:11 -0500 )edit

I think delete problem related with port binding. This port is without binding information. I not found any information about this port in neutron DB(Table: portbindingports)

jnemeiksis gravatar imagejnemeiksis ( 2019-11-20 10:39:36 -0500 )edit

The error message indicates that the port simply doesn't exist. As a consequence, it has no port binding information. Therefore my question if this port exists at all.

Bernd Bausch gravatar imageBernd Bausch ( 2019-11-20 12:43:19 -0500 )edit

Yes, this port and all same ports exists at all. If I list or try show ports exists.

jnemeiksis gravatar imagejnemeiksis ( 2019-11-20 13:15:26 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-11-27 01:48:55 -0500

jnemeiksis gravatar image


I inserted values into ml2_port_bindigs and then delete ports through CLI.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-11-20 08:17:55 -0500

Seen: 582 times

Last updated: Nov 27 '19