agent extension fails to clear a bgpvpn association

Bug #1722569 reported by Thomas Morin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BaGPipe
Fix Released
High
Thomas Morin
networking-bgpvpn
Fix Released
High
Thomas Morin

Bug Description

The processing in _is_last_bgpvpn_info [1] fails in the case where update_bgpvpn RPC was called prior to deletion of the association (or deletion of the BGPVPN), because the update_bgpvpn RPC call includes an 'id' (which is a BGPVPN id) which we shouldn't use, but which we copy into net_info. It is then present in net_info at [2], which makes the orig_info dict non-empty after the RT update and results in the code failing to identify that there is no BGPVPN association anymore.

[1] https://github.com/openstack/networking-bagpipe/blob/master/networking_bagpipe/agent/bgpvpn/agent_extension.py#L388
[2] https://github.com/openstack/networking-bagpipe/blob/master/networking_bagpipe/agent/bgpvpn/agent_extension.py#L546

tags: added: pike-backport-potential
Changed in networking-bagpipe:
assignee: nobody → Thomas Morin (tmmorin-orange)
Revision history for this message
Thomas Morin (tmmorin-orange) wrote :
tags: added: backport-potential
removed: pike-backport-potential
description: updated
Changed in bgpvpn:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Thomas Morin (tmmorin-orange)
Changed in networking-bagpipe:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-bagpipe (master)

Reviewed: https://review.openstack.org/510918
Committed: https://git.openstack.org/cgit/openstack/networking-bagpipe/commit/?id=d51f4e85708add58c07ec6a795fc67b2ebac0033
Submitter: Jenkins
Branch: master

commit d51f4e85708add58c07ec6a795fc67b2ebac0033
Author: Thomas Morin <email address hidden>
Date: Tue Oct 10 17:48:06 2017 +0200

    bgpvpn agent extension: fix disassociate after update

    We need to ignore the 'id' attribute in the RPC dict
    for update_bgpvpn and delete_bgpvpn. It is a remain of
    past code, and useless, and it breaks the _is_last_bgpvpn_info
    method.

    This change also updates existing unit tests so that
    we emulate the reception of real RPCs from the neutron server
    for bgpvpn.

    Closes-Bug: 1722569
    Change-Id: I7c479ff60328c02761ac865bb11318b52f1427ec

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

This issue was fixed in the openstack/networking-bagpipe 8.0.0.0b1 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.