octavia/etc
Gregory Thiemonge 0f4b5ca2c2 Fix controller worker graceful shutdown
Fix an issue that prevents graceful shutdown of controller workers.

cotyledon.Service.terminate function is by definition the graceful
termination function and doesn't have any 'graceful' optional boolean
argument (https://cotyledon.readthedocs.io/en/latest/api.html).

Because of this error, message_listener.wait() was never called in the
consumers' termination functions, so flows could be interrupted before
completion and could leave resources such as load balancer in a
PENDING_* provisioning state.

By default cotyledon.Service terminates the server after a timeout if
the worker could not shutdown itself gracefully. The default value
for the timeout is 300 seconds (set in devstack plugin) and can be
overriden using the graceful_shutdown_timeout setting in octavia.conf
The default value will be updated to a lower value when work on
persistant taskflow will be merged.

Story: 2006603
Task: 36770

Change-Id: I3f776bd018246897c9a889699a2d0ecbbfbb7098
(cherry picked from commit 215c4c2284)
(cherry picked from commit 0fc1ea4789)
2019-11-21 10:24:35 +01:00
..
audit Add auditing support to the Octavia API 2018-12-11 23:32:58 +00:00
certificates Fix multi-typo error in Octavia 2017-01-05 11:56:20 +08:00
dhcp Disbale DNS update for port o-hm0 in devstack 2016-07-18 04:45:32 -05:00
policy Fixing Octavia generating json named file containing yaml 2018-07-24 13:06:55 +00:00
octavia.conf Fix controller worker graceful shutdown 2019-11-21 10:24:35 +01:00