Comment 9 for bug 1427122

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

Reviewed: https://review.openstack.org/245021
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d2255ab194a6a597ef45b36cfc7584b76503544d
Submitter: Jenkins
Branch: stable/kilo

commit d2255ab194a6a597ef45b36cfc7584b76503544d
Author: lzklibj <email address hidden>
Date: Mon Mar 2 02:13:41 2015 -0800

    Fix dvr update for subnet attach multi subnets

    Fix method dvr_update_router_addvm to notify every
    router attached to subnet where the vm will boot
    on.

    In dvr case, when a subnet only attaches to one router,
    the subnet will only have one distributed router interface,
    which device_owner is "network:router_interface_distributed".
    So in this case, get_ports in this method will only get
    one port, and it should be unnecessary to break in for loop.

    But when a subnet attaches multiple routers, get_ports in
    this method will return all distributed router interfaces
    and the routers hold those interfaces should be notified
    when an instance booted on the subnet. So it should also
    be unnecessary to break in for loop.

    Closes-Bug: #1427122
    Co-Authored-By: Ryan Moats <email address hidden>
    (cherry picked from commit 24fa37e05544316b58357b753360b147878e5d94)

    Conflicts:
     neutron/db/l3_dvrscheduler_db.py
     neutron/tests/unit/scheduler/test_l3_agent_scheduler.py
    Change-Id: I3a5808e5b6e8b78abd1a5b924395844507da0764