Ask Your Question
0

How to Delete Orphaned Router Port

asked 2019-12-06 20:59:47 -0600

Sheik gravatar image

updated 2019-12-10 03:04:53 -0600

eblock gravatar image

Installed Stein with packstack. I am trying to delete 'public' net, default router port and see the following in the logs. I would like to delete the router also but first things first.

The error states does not have this interface but I am selecting it on the gui for deletion,

Any suggestions? I tried the cli

# tail -f /var/log/horizon/horizon.log

2019-12-07 02:26:07,555 54212 INFO openstack_dashboard.dashboards.project.routers.ports.tables Failed to delete interface 9983a6ab-38f0-433e-83aa-b10c7c65aeef: Router 394798a4-7d41-443e-b2ba-551157a9115e does not have an interface with id 9983a6ab-38f0-433e-83aa-b10c7c65aeef
Neutron server returns request_ids: ['req-b7e26c1c-0353-4a76-8c9c-37d83c622833']
2019-12-07 02:26:07,555 54212 WARNING horizon.tables.actions Action (u'deleted interface', u'(9983a6ab-38f0)') Failed for Router 394798a4-7d41-443e-b2ba-551157a9115e does not have an interface with id 9983a6ab-38f0-433e-83aa-b10c7c65aeef

NOW THE CLI DELETE ATTEMPT:

(neutron) port-show 9983a6ab-38f0-433e-83aa-b10c7c65aeef
+-----------------------+------------------------------------------------------------------------------------+
| Field                 | Value                                                                              |
+-----------------------+------------------------------------------------------------------------------------+
| admin_state_up        | False                                                                              |
| allowed_address_pairs |                                                                                    |
| binding:host_id       | openstack-master-burl                                                              |
| binding:profile       | {}                                                                                 |
| binding:vif_details   | {"port_filter": true}                                                              |
| binding:vif_type      | ovs                                                                                |
| binding:vnic_type     | normal                                                                             |
| created_at            | 2019-10-11T17:25:04Z                                                               |
| description           |                                                                                    |
| device_id             | 394798a4-7d41-443e-b2ba-551157a9115e                                               |
| device_owner          | compute:None                                                                       |
| extra_dhcp_opts       |                                                                                    |
| fixed_ips             | {"subnet_id": "b2bf847f-6999-4d9e-937f-3ab3a0cde7db", "ip_address": "172.24.4.20"} |
| id                    | 9983a6ab-38f0-433e-83aa-b10c7c65aeef                                               |
| mac_address           | fa:16:3e:4a:08:46                                                                  |
| name                  |                                                                                    |
| network_id            | 0ef79f7e-4d10-43a9-9aea-84651da1e082                                               |
| port_security_enabled | False                                                                              |
| project_id            |                                                                                    |
| qos_policy_id         |                                                                                    |
| resource_request      |                                                                                    |
| revision_number       | 63                                                                                 |
| security_groups       |                                                                                    |
| status                | DOWN                                                                               |
| tags                  |                                                                                    |
| tenant_id             |                                                                                    |
| updated_at            | 2019-11-26T23:25:29Z                                                               |
+-----------------------+------------------------------------------------------------------------------------+


(neutron) port-delete 9983a6ab-38f0-433e-83aa-b10c7c65aeef
Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-44377cf4-f8ae-4885-9a23-514661c1e56d']

EDIT original question add "openstack router show"

~(keystone_admin)]# openstack router show 394798a4-7d41-443e-b2ba-551157a9115e
+-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
+-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| availability_zone_hints |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| availability_zones      | nova                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| created_at              | 2019-10-11T17:25:03Z                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| description             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| distributed             | False                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| external_gateway_info   | {"network_id": "0ef79f7e-4d10-43a9-9aea-84651da1e082", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "b2bf847f-6999-4d9e-937f-3ab3a0cde7db", "ip_address": "172.24.4.20"}]}                                                                                                                                                                                                                                                                                                                                                                        |
| flavor_id               | None                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ha                      | False                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| id                      | 394798a4-7d41-443e-b2ba-551157a9115e                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| interfaces_info         | [{"subnet_id": "67d639c2-8a35-4d69-af84-cd77acab6314", "ip_address": "192.168.2.1", "port_id": "82f0774d-9297-418b-911f-2b1743c1a349"}, {"subnet_id": "4b10dbce-231a-4af6-a7b9-eb130849cf33", "ip_address": "192.168.122.1", "port_id": "8d09f6e8-c657-45db-9211-93f1cd36523e"}, {"subnet_id": "b2bf847f-6999-4d9e-937f-3ab3a0cde7db", "ip_address": "172.24.4.20", "port_id": "9983a6ab-38f0-433e-83aa-b10c7c65aeef"}, {"subnet_id": "0428a633-f88d-46f4-b8c8-9fdd9487c552", "ip_address": "192.168.1.1", "port_id": "9c08d89f-6b8c-415f-b5de-4a46984826a3"}] |
| location                | Munch({'project': Munch({'domain_name': None, 'domain_id': None, 'name': None, 'id': u'696f67de21604135ad2603e1ac1eeb77'}), 'cloud': '', 'region_name': 'RegionOne', 'zone': None})                                                                                                                                                                                                                                                                                                                                                                            |
| name                    | MyRouter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| project_id              | 696f67de21604135ad2603e1ac1eeb77                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| revision_number         | 13                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| routes                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| status                  | ACTIVE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| tags                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| updated_at              | 2019-11-14T22:05:33Z                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------

Thank you for your help. Paul

edit retag flag offensive close merge delete

Comments

It sounds like the neutron components don't communicate properly with each other. Can you paste openstack router show 394798a4-7d41-443e-b2ba-551157a9115e? Please add the output to the question (you can edit it). I took the liberty to edit your question and used the code format to make it readable

eblock gravatar imageeblock ( 2019-12-09 04:51:43 -0600 )edit
1

Can you show the neutron logs from your attempt to delete the port via CLI? Maybe turn on debug logs first. Have you made sure that no instance is connected to that port? Clearly, the router uses that port as a gateway, so maybe you should delete all other interfaces first and then try again.

eblock gravatar imageeblock ( 2019-12-10 04:38:16 -0600 )edit

I agree with @eblock, you need to get rid of interfaces first in order to delete the router.

Syed Awais Ali gravatar imageSyed Awais Ali ( 2019-12-10 06:37:47 -0600 )edit

So one thing, I have ovn setup with geneve. I see nothing in the /var/log/neutron/neutron-server.log recently, including nothing in there on delete via cli. This is the only port I see on this router. If there was a way to delete router and interface I would do it as I do not need router

Sheik gravatar imageSheik ( 2019-12-10 14:22:52 -0600 )edit

But the ... router show output shows multiple interfaces (interfaces_info) and one external gateway. These ports need to be removed before you can remove the router.

eblock gravatar imageeblock ( 2019-12-11 01:34:03 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-02-02 13:04:08 -0600

Sheik gravatar image

I believe I eventually found and deleted ports, which allowed router deletion.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-12-06 20:59:47 -0600

Seen: 82 times

Last updated: Feb 02