Avoid having an RT multiple times in an RPC

Bug #1719589 reported by Thomas Morin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BaGPipe
Fix Released
Low
Unassigned
networking-bgpvpn
Fix Released
Undecided
Cedric Savignan

Bug Description

The bagpipe driver for BGPVPN compiles the BGPVPN route_targets, import_targets, export_targets attibutes into one "import RTs" list and one "export RTs" list. The "import RTs" list contains the RT from route_targets and import_targets, and the "export RTs" list contains the RT from route_targets and export_targets.

Currently, the code [1] does not filter duplicates: e.g. an RT that is both in route_targets and import_targets will be present twice in the RPCs between neutron server and agents, and agents will also pass this RT twice to bagpipe-bgp.

It would be better to avoid this duplicate.

[1] https://github.com/openstack/networking-bgpvpn/blob/master/networking_bgpvpn/neutron/services/service_drivers/bagpipe/bagpipe.py#L239-L261

Changed in networking-bagpipe:
importance: Medium → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-bgpvpn (master)

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

Changed in bgpvpn:
assignee: nobody → Cedric Savignan (csavignan)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-bgpvpn (master)

Reviewed: https://review.openstack.org/513670
Committed: https://git.openstack.org/cgit/openstack/networking-bgpvpn/commit/?id=72119ca9728d9bd7a6094d0377f57c4930db6267
Submitter: Zuul
Branch: master

commit 72119ca9728d9bd7a6094d0377f57c4930db6267
Author: Cédric Savignan <email address hidden>
Date: Fri Oct 20 10:58:18 2017 +0200

    Filter duplicated RTs in compiled list

    The code does not filter duplicates: e.g. an RT that is both
    in route_targets and import_targets will be present twice in the
    RPCs between neutron server and agents, and agents will also pass
    this RT twice to bagpipe-bgp.

    This patch fix avoid duplicated RTs in compiled Import Targets and
    Export Targets lists.

    Change-Id: Ia5b76235c75f005e3c53f7cddc8e085376f5ebe1
    Closes-Bug: 1719589

Changed in bgpvpn:
status: In Progress → Fix Released
Changed in networking-bagpipe:
status: Confirmed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-bgpvpn 8.0.0.0b2

This issue was fixed in the openstack/networking-bgpvpn 8.0.0.0b2 development milestone.

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.