Comment 8 for bug 1358554

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

Reviewed: https://review.openstack.org/117285
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=78059968e212d537c813f398da7f76714380bf4e
Submitter: Jenkins
Branch: master

commit 78059968e212d537c813f398da7f76714380bf4e
Author: rossella <email address hidden>
Date: Wed Aug 27 10:48:41 2014 +0000

    Update DVR Binding when router_id changes

    In this patch I modified update_dvr_port_binding to update the
    binding if router_id changes.
    When a new router namespace is created on a host, sync_router
    will call _ensure_host_set_on_port that will update the DVR binding.
    With the current code update_dvr_port_binding won't update the
    binding if there's an existing binding unless the binding
    vif_type is VIF_TYPE_BINDING_FAILED . There's a race when
    the router namespace is destroyed and then recreated on the same
    host.
    The DVR binding is deleted only when the message
    update_device_down is processed. If this message is processed
    after the update_dvr_port_binding triggered by the namespace creation,
    update_dvr_port_binding won't update the binding. When the router
    interface will be detected as UP, no DVR binding will be found.

    Closes-bug: #1358554
    Change-Id: I37fd4ed67dc2019b57e36d082b584c517d8f67a8