Concurrent routerroute update fails on deletion with AttributeError
Bug #2057698 reported by
Sebastian Lohff
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Sebastian Lohff |
Bug Description
When updating a router and providing a set of extra routes / routerroutes that result in some routes being deleted, it might happen that two workers fetch the routes at the same time and then both try to delete the route. As the route is fetched before deletion, in one of the two workers the get_object() will return None, on which delete() is called, resulting in an AttributeError:
AttributeError: 'NoneType' object has no attribute 'delete'
The result is not fulfilled properly and a 500 is returned to the user.
This was observed on neutron yoga, though the same code (+ a breaking test) seem to confirm this on current master.
Changed in neutron: | |
assignee: | nobody → Sebastian Lohff (sebageek) |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron/ +/912629
Review: https:/