Add oslo db retry decorator to the RPC handlers
The decorator was previously added at the API layer
(commit
4e77442d529d9803ff90de905b846af940eaf382,
commit
d04335c448aa15cf9e1902e22ed4cd17b6ed344b).
However some RPC handlers are also dealing with port
create/update/delete operations, like dhcp ports for example.
We need to cover these cases too.
Also remove db retry from ml2 plugin delete_port()
as it's not needed once we retry at the API and RPC layers.
(there is already a unit test on this)
The patch also adds a unit test for checking deadlock
handling during port creation at API layer.
Though it's not directly related to the current fix,
I decided to leave it for regression preventing purposes.
Closes-Bug: #
1479738
Change-Id: I7793a8f7c37ca542b8bc12372168aaaa0826ac4c