neutron/neutron/services/trunk/rpc
Slawek Kaplonski 7a8b59624c Add retries to update trunk port
In [1] retry of trunk update was added to avoid StaleDataError
exceptions to fail to set trunk port or subports to ACTIVE state.
But it was only partial fix for the issue descibed in related bug
and from [2] we know that it still can happen on high load systems
from time to time.
So I was checking this issue and reported bug again and I found out
that retry was added only in _process_trunk_subport_bindings()
method. But StaleDataError can be raised also in other cases where
the same trunk is updated, e.g. in update_trunk_status() method.

So this commit adds same retry mechanism to all trunk.update() actions
in services.trunk.rpc.server module.

[1] https://review.opendev.org/#/c/662236/
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1733197

Conflicts:
    neutron/services/trunk/rpc/server.py

Change-Id: I10e3619d5f3600ea97ed695321bb691dece3181f
Partial-Bug: #1828375
(cherry picked from commit ade35a233e)
2020-01-14 09:15:35 +01:00
..
__init__.py Add RPC layer for Trunk Plugin and driver plumbing 2016-08-12 17:45:55 -07:00
agent.py remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
backend.py use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
constants.py Add RPC layer for Trunk Plugin and driver plumbing 2016-08-12 17:45:55 -07:00
server.py Add retries to update trunk port 2020-01-14 09:15:35 +01:00