<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="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 class="h5">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 class="h5"><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>