delete_net_assoc_precommit should be done before deleting bgpvpn net assoc
Bug #1709647 reported by
Omar Sanhaji
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-bgpvpn |
Fix Released
|
Undecided
|
Thomas Morin |
Bug Description
To delete a network association the driver api start a transaction, delete the network association, checks precommit conditions and commit the changes.
I am working on implementing ovo rpc calls for bagpipe driver, and I need to get the object before it is deleted from the database, to notify the agent.
Wouldn't it make more sense to have the precommit before deleting the network association from the database, or else, nothing can be done on the object ?
To post a comment you must log in.
Agreed, this will allow drivers to read the DB with the object being present at delete precomit time.
I've had a look at ODL driver, which uses these hooks and I don't think the change would affect its behavior.
I haven't checked OpenContrail or Nuage.
I we find out that they are affected, the alternative solution is to *add* a hook in the transaction , but before DB deletion.