<div dir="ltr"><div><div>Hi,<br><br></div>I am facing trouble deleting a router from my openstack deployment.<br><br></div>I have tried the following commands on the <b>controller node</b> and pasted the output.<br><div><br>
<span style="font-family:courier new,monospace"><b>neutron router-interface-delete</b> 2f16d846-b6aa-43a3-adbe-7f91a1389b7f  962b8364-a2b4-46cc-95be-28cbab62b8c2<br>409-{u'NeutronError': {u'message': u'Router interface for subnet 962b8364-a2b4-46cc-95be-28cbab62b8c2 on router 2f16d846-b6aa-43a3-adbe-7f91a1389b7f cannot be deleted, as it is required by one or more routes.', u'type': u'RouterInterfaceInUseByRoute', u'detail': u''}}<br>
<br> <b>neutron port-delete</b>  ec1aac66-481d-488e-860b-53b88d950ac7<br>409-{u'NeutronError': {u'message': u'Port ec1aac66-481d-488e-860b-53b88d950ac7 has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}}<br>
<br> <b>neutron router-delete</b> 2f16d846-b6aa-43a3-adbe-7f91a1389b7f<br>409-{u'NeutronError': {u'message': u'Router 2f16d846-b6aa-43a3-adbe-7f91a1389b7f still has active ports', u'type': u'RouterInUse', u'detail': u''}}</span><br>
<br><span style="font-family:courier new,monospace"><b>neutron l3-agent-router-remove</b> 7a977e23-767f-418e-8429-651c4232548c 2f16d846-b6aa-43a3-adbe-7f91a1389b7f</span><br></div><div>This removes the router from the l3 agent and attaches it to another one as seen below.<br>
<br> <span style="font-family:courier new,monospace"><b>neutron l3-agent-list-hosting-router</b>  2f16d846-b6aa-43a3-adbe-7f91a1389b7f</span><br>+--------------------------------------+----------------------+----------------+-------+<br>
<span style="font-family:courier new,monospace">| id                                   | host                 | admin_state_up | alive |<br>+--------------------------------------+----------------------+----------------+-------+<br>
| 96e1371a-be03-42ed-8141-3b0027d3a82f | alln01-1-csx-net-004 | True           | :-)  </span> |<br>+--------------------------------------+----------------------+----------------+-------+<br><br></div><div><br></div><div>
I have also run the commands below on the <b>network node</b> which worked fine.<br><br><span style="font-family:courier new,monospace"><b>ip netns delete</b> qrouter-2f16d846-b6aa-43a3-adbe-7f91a1389b7f<br><br><b>ovs-vsctl del-port</b> br-int qr-ec1aac66-48</span><br>
<br></div><div>Could someone please tell me what can be done to delete the router or is this some bug  I am hitting.<br><br></div><div>Thanks,<br></div><div>Sayali.<br></div><div> <br> <br></div></div>