exception raised on disassociate_floatingips when out of sync

Bug #1177176 reported by Aaron Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Aaron Rosen
Grizzly
Fix Released
High
Gary Kotton

Bug Description

Traceback (most recent call last):
File "/home/arosen/quantum/quantum/api/v2/resource.py", line 82, in resource
result = method(request=request, **args)
File "/home/arosen/quantum/quantum/api/v2/base.py", line 395, in delete
obj_deleter(request.context, id, **kwargs)
File "/home/arosen/quantum/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py", line 1500, in delete_port
self.disassociate_floatingips(context, id)
File "/home/arosen/quantum/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py", line 2048, in disassociate_floatingips
min_num_rules_expected=1)
File "/home/arosen/quantum/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py", line 1902, in _retrieve_and_delete_nat_rules
destination_ip_addresses=floating_ip_address)
File "/home/arosen/quantum/quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py", line 1273, in delete_nat_rules_by_match
nat_rules = query_nat_rules(cluster, router_id)
File "/home/arosen/quantum/quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py", line 1325, in query_nat_rules
result = get_all_query_pages(uri, cluster)
File "/home/arosen/quantum/quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py", line 191, in get_all_query_pages
cluster=c)
File "/home/arosen/quantum/quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py", line 207, in do_single_request
raise exception.NotFound()
NotFound: An unknown exception occurred.

Tags: nicira
Aaron Rosen (arosen)
Changed in quantum:
assignee: nobody → Aaron Rosen (arosen)
tags: added: grizzly-backport-potential nicira
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/28375

Changed in quantum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/28375
Committed: http://github.com/openstack/quantum/commit/17336b9cb64048652bb6853fe0429699b4762a40
Submitter: Jenkins
Branch: master

commit 17336b9cb64048652bb6853fe0429699b4762a40
Author: Aaron Rosen <email address hidden>
Date: Mon May 6 20:21:57 2013 -0700

    Fix 500 raised on disassociate_floatingips when out of sync

    If one deletes NAT rules directly from NVP and not through quantum,
    an error will be raised when deleting a port that is associated with
    the floating ip. This patch catches the NotFound exception and logs
    it so that the port can successfully be deleted.

    Fixes bug: 1177176

    Change-Id: Ia7d0b94957d0c6b014d242439245b0e4fa9de40d

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
importance: Undecided → High
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/28933

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (stable/grizzly)

Reviewed: https://review.openstack.org/28933
Committed: http://github.com/openstack/quantum/commit/59410e6e0a8361f99fe7c711c1e395cdaed1e62f
Submitter: Jenkins
Branch: stable/grizzly

commit 59410e6e0a8361f99fe7c711c1e395cdaed1e62f
Author: Aaron Rosen <email address hidden>
Date: Mon May 6 20:21:57 2013 -0700

    Fix 500 raised on disassociate_floatingips when out of sync

    If one deletes NAT rules directly from NVP and not through quantum,
    an error will be raised when deleting a port that is associated with
    the floating ip. This patch catches the NotFound exception and logs
    it so that the port can successfully be deleted.

    Fixes bug: 1177176

    Change-Id: Ia7d0b94957d0c6b014d242439245b0e4fa9de40d
    (cherry picked from commit 17336b9cb64048652bb6853fe0429699b4762a40)

tags: added: in-stable-grizzly
Gary Kotton (garyk)
tags: removed: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: in-stable-grizzly
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.