octavia/octavia/controller/worker/tasks
Gregory Thiemonge 5528268e2f Fix uncaught DB exception when trying to get a spare amphora
The MapLoadbalancerToAmphora task performs some database queries but
doesn't catch any exception from it.

In case something goes wrong with the database or the query, this commit
catchs any exception from the DB call, logs it and then returns None to
switch to the next decider branch (boot a new amphora).

Note: In Queens, string format method in the LOG.error call was changed
to please pep8/pylint.

Story 2007320
Task 38831

Change-Id: Ifb6c34426e0927534d332a8bbf2c66aac6c002c5
(cherry picked from commit 3bbd32a2a5)
(cherry picked from commit 0c1cb417e9)
(cherry picked from commit 372e047a84)
(cherry picked from commit e7376be7af)
2020-02-25 09:16:02 +01:00
..
__init__.py Implements Octavia Controller Worker 2015-04-29 21:34:07 +00:00
amphora_driver_tasks.py Encrypt certs and keys 2019-03-06 10:21:35 +02:00
cert_task.py Encrypt certs and keys 2019-03-06 10:21:35 +02:00
compute_tasks.py Encrypt certs and keys 2019-03-06 10:21:35 +02:00
database_tasks.py Fix uncaught DB exception when trying to get a spare amphora 2020-02-25 09:16:02 +01:00
lifecycle_tasks.py Fix a lifecycle bug with child objects 2019-04-16 14:57:13 +02:00
model_tasks.py Fix session persistence update 2018-01-29 23:14:51 -08:00
network_tasks.py Fix failover when multiple amphora have failed 2018-08-08 14:54:41 -07:00