network fetched from DB has deleted subnets in it during db-retry of subnet_create
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
Only seen in Newton
Possibly related bug: https:/
When a retriable database error occurs in a mechanism driver's subnet_
What's happening is:
1) mech driver's DB error is caught. Subnet that is created previously gets deleted in ml2plugin.
2) retry wrapper retries the create_subnet method
3) in db_base_
network = self._get_
4) This network contains the subnet that was deleted in step 1.
It is related to the backref present in Newton:
https:/
which is not present in Ocata onwards. And more specifically, the lazy='subquery' is causing it'. Leaving the lazy parameter out avoids this issue as well.
As it currently is, the DB-retry can't work when DB errors happen in postcommit.
Changed in neutron: | |
assignee: | nobody → Anusha K (anusha25) |
Changed in neutron: | |
assignee: | Anusha K (anusha25) → nobody |