Delete of BGPVPN does not ensure associations are deleted before deletion of BGPVPN itself
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-bgpvpn |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am using networking-
The scenario which I am running is the following:
I create a bgpvpn named bgpvpn0
I create a subnet subnet0
I associate the bgpvpn0 to subnet0
I am trying through python neutron client to delete bgpvpn0. Then, I am querying the list of bgvpns until it is gone and, finally, I am deleting the subnet0.
The result is the following:
Error [delete_
That happens because the port is still present in the subnet due to the aforementioned bgpvpn association.
The solution would be to check for deletion of associations before deleting the bgpvpn.
description: | updated |
The base behavior for drivers relying on the neutron DB (all drivers except the one for OpenContrail) is that when a BGPVPN is deleted, any Network|Router|Port association for this BGPVPN is deleted from the DB.
I'm not aware of anything in the BGPVPN service plugin that would prevent deletion of any Port|Network|Router resource, even less a subnet resource (subnets are *not* associated to BGPVPNs in BGPVPN API).
That would lead me to believe that the issue you see would be a behavior specific to a driver or to its SDN controller (?) that would create a Port when the association is created, but would fail to delete it when the BGPVPN or association is removed.
Can you provide information about which BGPVPN driver you were using ?