octavia/doc/source
Gregory Thiemonge 57833dbdad Retry to set loadbalancer prov status on failures
In case of DB outages when a flow is running, an exception is caught and
the flow is reverted. In most of the flows, the revert function of the
first task's (the last to be reverted) unlocks the load balancer by
setting its provisioning status (to ERROR or ACTIVE, depending on the
flow), but it fails if the DB is not reachable, leaving the LB in
a PENDING_* state.
This commit adds tenacity.retry to those functions, Octavia retries to
set the status during ~2h45 (2000 attempts, 1 sec initial delay, 5 sec
max delay).

Note: stable/2023.1 and older, the patch also includes modifications for
v1/tasks/lifecycle_tasks.py

Conflicts:
	octavia/tests/unit/controller/worker/test_task_utils.py
	octavia/controller/worker/v1/tasks/lifecycle_tasks.py

Closes-Bug: #2036952
Change-Id: I458dd6d6f5383edc24116ea0fa27e3a593044146
(cherry picked from commit be91493332)
(cherry picked from commit 96782e2c54)
2023-10-11 10:03:05 +02:00
..
_static Update Octavia docs for documentation migration 2017-07-03 11:43:40 -07:00
admin Retry to set loadbalancer prov status on failures 2023-10-11 10:03:05 +02:00
cli Add a CLI section to the Octavia docs 2017-08-23 14:39:48 -07:00
configuration Move system scoped secure-RBAC to separate file 2022-07-15 23:43:07 +00:00
contributor Documentation updates 2022-03-23 10:00:47 +01:00
install Fix wrong SQL statements in documentation 2022-02-16 12:10:50 +01:00
reference Documentation updates 2022-03-23 10:00:47 +01:00
user Add a Grafana dashboard for Octavia load balancers 2022-02-28 17:27:20 +00:00
conf.py Remove unnecessary unicode prefixes 2022-04-27 15:33:47 +08:00
index.rst Generate PDF documentation 2019-09-19 13:12:37 -07:00