<div dir="ltr"><div><div><div>Hi Zzelle,<br><br></div>Thanks for the prompt response. <br></div>As you mentioned I cleared all the routes using <br><b>neutron router-update <span style="font-family:courier new,monospace">2f16d846-b6aa-43a3-adbe-7f91a1389b7f --routes action=clear<br>
</span></b></div><div><span style="font-family:courier new,monospace"><span style="font-family:arial,helvetica,sans-serif">So to see the router status I run this: </span></span><b><span style="font-family:courier new,monospace"><br>
neutron router-show 2f16d846-b6aa-43a3-adbe-7f91a1389b7f <br>+-----------------------+--------------------------------------+<br>| Field | Value |<br>+-----------------------+--------------------------------------+<br>
| admin_state_up | True |<br>| external_gateway_info | |<br>| id | 2f16d846-b6aa-43a3-adbe-7f91a1389b7f |<br>| name | router0 |<br>
| routes | |<br>| status | ACTIVE |<br>| tenant_id | 315561c9a19e4794ac4f4364c842254f |<br>+-----------------------+--------------------------------------+<br>
<br></span></b></div><div><span style="font-family:arial,helvetica,sans-serif">After that I try to unbind the subnet using the command below but the same problem persists.</span><b><span style="font-family:courier new,monospace"><br>
</span></b><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''}}</span></div>
<div><b><span style="font-family:courier new,monospace"><br></span></b></div><div><span style="font-family:arial,helvetica,sans-serif">I am confused at this point as all the routes have been cleared but still it is throwing an error saying the router is required by multiple routes.</span><b><span style="font-family:courier new,monospace"><br>
</span></b></div><div><b><span style="font-family:courier new,monospace"><br></span></b></div><div><span style="font-family:arial,helvetica,sans-serif">Thanks,<br></span></div><div><span style="font-family:arial,helvetica,sans-serif">Sayali.</span><b><span style="font-family:courier new,monospace"><br>
</span></b></div><b><span style="font-family:courier new,monospace"></span></b></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 2, 2014 at 3:25 PM, ZZelle <span dir="ltr"><<a href="mailto:zzelle@gmail.com" target="_blank">zzelle@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>First command is of course:<br><b> neutron router-show </b><span style="font-family:courier new,monospace"><b>2f16d846-b6aa-43a3-adbe-</b><b>7f91a1389b7f<br>
</b></span></div><span style="font-family:courier new,monospace">not<b><br>
</b></span><div><b> neutron router-update </b><span style="font-family:courier new,monospace"><b>2f16d846-b6aa-43a3-adbe-</b><b>7f91a1389b7f</b></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
On Sat, Aug 2, 2014 at 11:54 AM, ZZelle <span dir="ltr"><<a href="mailto:zzelle@gmail.com" target="_blank">zzelle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi,<br><br></div><div>According to the first error message, the subnet you try to unbind is used in router routes, you can see current router routes using:<br><br> <b>neutron router-update </b><span style="font-family:courier new,monospace"><b>2f16d846-b6aa-43a3-adbe-</b><b>7f91a1389b7f</b></span><br>
<br>you need to update them before unbind:<br><br></div><div><b> neutron router-update </b><span style="font-family:courier new,monospace"><b>2f16d846-b6aa-43a3-adbe-</b><b>7f91a1389b7f --routes type=dict list=true destination=...,nexthop=... [destination=...,nexthop=...[...]]<br>
</b><br></span></div><div><span style="font-family:courier new,monospace">or clear router routes:<br><br></span><b> neutron router-update <span style="font-family:courier new,monospace">2f16d846-b6aa-43a3-adbe-7f91a1389b7f --routes action=clear<br>
<br></span></b></div><div><span style="font-family:courier new,monospace">And finally retry to unbind the subnet.<br><br><br><br></span></div><div><span style="font-family:courier new,monospace">Cédric,<br></span></div><div>
<span style="font-family:courier new,monospace">ZZelle@IRC<br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sat, Aug 2, 2014 at 9:56 AM, Sayali Lunkad <span dir="ltr"><<a href="mailto:sayali.92720@gmail.com" target="_blank">sayali.92720@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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>
<br></div></div>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>