Stuck neutron router port due to extraroute (from Heat)

asked 2015-05-15 08:05:28 -0500

don gravatar image

As part of a Heat stack, I have used an OS::Neutron::ExtraRoute:

  pptp_backroute:
    type: OS::Neutron::ExtraRoute
    properties:
      router_id: { get_resource : drtr }
      destination: 172.16.3.0/24
      nexthop: 172.16.3.3

This generally works well. However, on one time when deleting , it doesn't work. As you can see below, it cannot remove the port from the router because its needed still. I needed to manually run:

neutron router-update 77f5c0fd-d9d3-49f1-8140-402aa9f8897b --routes action=clear

to get Heat to be able to delete the stack.

This shows the issue below. Am I doing something wrong?

neutron router-show 77f5c0fd-d9d3-49f1-8140-402aa9f8897b
+-----------------------+-----------------------------------------------------------+
| Field                 | Value                                                     |
+-----------------------+-----------------------------------------------------------+
| admin_state_up        | True                                                      |
| distributed           | False                                                     |
| external_gateway_info |                                                           |
| ha                    | False                                                     |
| id                    | 77f5c0fd-d9d3-49f1-8140-402aa9f8897b                      |
| name                  | sv-drtr                                                   |
| routes                | {"destination": "172.16.3.0/24", "nexthop": "172.16.3.3"} |
| status                | ACTIVE                                                    |
| tenant_id             | 680331bc1fb847048a2d1ec2ed1de7ed                          |
+-----------------------+-----------------------------------------------------------+

neutron router-port-list 77f5c0fd-d9d3-49f1-8140-402aa9f8897b                                                 
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                         |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
| 05722165-7bbf-48b0-858d-c7575bfd67c7 |      | fa:16:3e:57:0c:6d | {"subnet_id": "1f704d7d-5dd3-470f-a15f-321faf173305", "ip_address": "172.16.3.1"} |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+

$ neutron router-interface-delete 77f5c0fd-d9d3-49f1-8140-402aa9f8897b 1f704d7d-5dd3-470f-a15f-321faf173305
Router interface for subnet 1f704d7d-5dd3-470f-a15f-321faf173305 on router 77f5c0fd-d9d3-49f1-8140-402aa9f8897b cannot be deleted, as it is required by one or more routes. (HTTP 409) (Request-ID: req-afdb60ec-da3a-4da6-899d-58ec17b28413)
edit retag flag offensive close merge delete