l3_agent: ri.internal_ports.append/removed should be called only if internal_network_added/removed succeed.

Bug #1255871 reported by Jian Wen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Jian Wen

Bug Description

How to reproduce:
  See the test cases in the following patch.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: nobody → Jian Wen (wenjianhn)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/58942
Committed: http://github.com/openstack/neutron/commit/dd71021347f782608575d551f2329715c00546ce
Submitter: Jenkins
Branch: master

commit dd71021347f782608575d551f2329715c00546ce
Author: Jian Wen <email address hidden>
Date: Wed Nov 27 22:23:26 2013 +0800

    l3_agent: make process_router more robust

    If internal_network_added/removed fails, _sync_routers_task will call
    process_router to do fault recovery. Because the port is already
    added/removed to/from ri.internal_ports, internal_network_added or
    internal_network_removed will not be called again.

    The patch fix this issue by calling ri.internal_ports.append/removed
    only if internal_network_added/removed succeed. Without the patch,
    the added testcases would fail.

    Change-Id: I2d2e004caa670c1624257c1d7ccc900438b42d08
    Co-Authored-By: Hirofumi Ichihara <email address hidden>
    Closes-Bug: #1255871

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-2 → 2014.1
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.