Comment 7 for bug 1299259

Revision history for this message
Igor Milovanović (igormilovanovic) wrote : Re: FloatingIP needs a hidden dependency on Routers

I'm still seeing this running Juno, when I try to delete a stack via Horizon:

2014-12-02 18:21:35.800 5084 INFO heat.engine.resource [-] deleting RouterInterface "router1_interface" [4a392766-5eb6-4854-b896-85d355e82ee6:subnet_id=ddf1b745-7eba-4063-a5a9-491283da7750] Stack "buss_stack" [2f27941a-95d1-42d5-ae96-30063beaa4c2]
2014-12-02 18:21:35.825 5084 DEBUG neutronclient.client [-]
REQ: curl -i http://172.19.29.167:9696//v2.0/routers/4a392766-5eb6-4854-b896-85d355e82ee6/remove_router_interface.json -X PUT -H "X-Auth-Token: ac1e5a57a784e566825828906b2be285" -H "User-Agent: python-neutronclient" -d '{"subnet_id": "ddf1b745-7eba-4063-a5a9-491283da7750"}'
 http_log_req /usr/lib/python2.7/site-packages/neutronclient/common/utils.py:140
2014-12-02 18:21:35.826 5084 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 172.19.29.167
2014-12-02 18:21:35.954 5084 DEBUG urllib3.connectionpool [-] "PUT //v2.0/routers/4a392766-5eb6-4854-b896-85d355e82ee6/remove_router_interface.json HTTP/1.1" 409 268 _make_request /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:357
2014-12-02 18:21:35.954 5084 DEBUG neutronclient.client [-] RESP:409 {'date': 'Tue, 02 Dec 2014 18:21:35 GMT', 'content-length': '268', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-4102ee51-d655-497b-bd78-aad277deb86a'} {"NeutronError": {"message": "Router interface for subnet ddf1b745-7eba-4063-a5a9-491283da7750 on router 4a392766-5eb6-4854-b896-85d355e82ee6 cannot be deleted, as it is required by one or more floating IPs.", "type": "RouterInterfaceInUseByFloatingIP", "detail": ""}}
 http_log_resp /usr/lib/python2.7/site-packages/neutronclient/common/utils.py:149
2014-12-02 18:21:35.955 5084 DEBUG neutronclient.v2_0.client [-] Error message: {"NeutronError": {"message": "Router interface for subnet ddf1b745-7eba-4063-a5a9-491283da7750 on router 4a392766-5eb6-4854-b896-85d355e82ee6 cannot be deleted, as it is required by one or more floating IPs.", "type": "RouterInterfaceInUseByFloatingIP", "detail": ""}} _handle_fault_response /usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py:1207
2014-12-02 18:21:35.955 5084 INFO heat.engine.resource [-] DELETE: RouterInterface "router1_interface" [4a392766-5eb6-4854-b896-85d355e82ee6:subnet_id=ddf1b745-7eba-4063-a5a9-491283da7750] Stack "buss_stack" [2f27941a-95d1-42d5-ae96-30063beaa4c2]
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource Traceback (most recent call last):
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 435, in _action_recorder
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource yield
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 839, in delete
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource yield self.action_handler_task(action, *action_args)
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 286, in wrapper
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource step = next(subtask)
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 476, in action_handler_task
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource handler_data = handler(*args)
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/neutron/router.py", line 275, in handle_delete
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource self.client_plugin().ignore_not_found(ex)
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/clients/client_plugin.py", line 84, in ignore_not_found
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource raise ex
2014-12-02 18:21:35.955 5084 TRACE heat.engine.resource Conflict: Router interface for subnet ddf1b745-7eba-4063-a5a9-491283da7750 on router 4a392766-5eb6-4854-b896-85d355e82ee6 cannot be deleted, as it is required by one or more floating IPs.