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.
Reviewed: https:/ /review. openstack. org/117285 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=78059968e21 2d537c813f398da 7f76714380bf4e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 78059968e212d53 7c813f398da7f76 714380bf4e
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 host_set_ on_port that will update the DVR binding. dvr_port_ binding won't update the BINDING_ FAILED . There's a race when device_ down is processed. If this message is processed dvr_port_ binding triggered by the namespace creation, dvr_port_ binding won't update the binding. When the router
binding if router_id changes.
When a new router namespace is created on a host, sync_router
will call _ensure_
With the current code update_
binding if there's an existing binding unless the binding
vif_type is VIF_TYPE_
the router namespace is destroyed and then recreated on the same
host.
The DVR binding is deleted only when the message
update_
after the update_
update_
interface will be detected as UP, no DVR binding will be found.
Closes-bug: #1358554 9b57e36d082b584 c517d8f67a8
Change-Id: I37fd4ed67dc201