1ad32d7cae
When an error occurs in a flow, the provisioning status of the load balancer should be set to ERROR in the revert method of the first task of the flow. This update acts as an unlock of the LB object and cannot occur in any other revert method because the API might consider the LB as mutable before finishing a task/flow. Remove all occurrences of mark_loadbalancer_prov_status_error calls in revert method of tasks that are not specifically designed for unlocking the load balancers. Add a LoadBalancerToErrorOnRevertTask task in the amphora failover flow to prevent a LB to be in an immutable state. Story 2009651 Task 43810 Story 2009652 Task 43811 Note for stable/train: the code of the amphorav2 is not updated in this backport, the source files exist in train but the feature was added ussuri. Backporting this patch creates many merge conflicts and doesn't provide anything for train users. Conflicts: octavia/controller/worker/v1/tasks/database_tasks.py octavia/controller/worker/v2/flows/amphora_flows.py octavia/controller/worker/v2/tasks/amphora_driver_tasks.py octavia/controller/worker/v2/tasks/database_tasks.py octavia/tests/unit/controller/worker/v2/flows/test_amphora_flows.py octavia/tests/unit/controller/worker/v2/tasks/test_amphora_driver_tasks.py octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py Change-Id: I48b0f5a773209b1c1b056d71c0da05d6fd82ca73 (cherry picked from commit |
||
---|---|---|
.. | ||
healthmanager | ||
housekeeping | ||
queue | ||
worker | ||
__init__.py |