add delete_bgpvpn_precommit

Bug #1595362 reported by Steve Ruan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-bgpvpn
In Progress
Undecided
Steve Ruan

Bug Description

Here is the case, we need a callback delete_bgpvpn_precommit:

We will bind a bgpvpn to bgpspeaker(implemented in neutron-dynamic-routing project). When bgpvpn is deleted, there are 2 options:
1. check whether it's binding to speaker, if yes, prevent this action.
   For this case, we need delete_bgpvpn_precommit callback.
2. check whether it's binding to speaker, if yes, unbind the association.

Method #1 looks more straight forward, and it's the normal behavior.

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/333078

Changed in bgpvpn:
assignee: nobody → steve (ruansx)
status: New → In Progress
Revision history for this message
Mathieu Rohon (mathieu-rohon) wrote :

hi steve,

I don't understand why deleting a bgpvpn would be forbidden when it is bound to a speaker? the option number 2 seems more natural to me, and AFAIU, it could be done thanks to the delete_bgpvpn_postcommit callback.

Am I missing something?

Changed in bgpvpn:
status: In Progress → Incomplete
Revision history for this message
Thomas Morin (tmmorin-orange) wrote :

I agree with Mathieu: if the API user says 'delete this BGPVPN' it means that whatever was needed to implement it should be dropped as well (here the BGPVPN -- BGPSpeaker association).

Revision history for this message
Steve Ruan (ruansx) wrote :

Hi Mathieu,

I am work a feature https://bugs.launchpad.net/neutron/+bug/1509431.
This feature will bind a bgpvpn to bgpspeaker, this binding is manually configured. But when bgppn is deleted, there are 2 options described as above.
From my point, since binding is manually, the unbinding is better also manually.

So I want to prevent the unbinding when delete bgpvpn which is bound to a bgp speaker.

Of course, it can also be implemented as Thomas said "it should be dropped as well (here the BGPVPN -- BGPSpeaker association).".

Thanks.

Changed in bgpvpn:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-bgpvpn (master)

Change abandoned by steve (<email address hidden>) on branch: master
Review: https://review.openstack.org/333078

Revision history for this message
Thomas Morin (tmmorin-orange) wrote :
Revision history for this message
Thomas Morin (tmmorin-orange) wrote :

(ignore last, bogus, comment)

Revision history for this message
Thomas Morin (tmmorin-orange) wrote :
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.