7a8b59624c
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
|
||
---|---|---|
.. | ||
__init__.py | ||
agent.py | ||
backend.py | ||
constants.py | ||
server.py |