octavia/octavia/controller
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
..
healthmanager only rollback DB when we have a connection to the DB 2019-08-26 17:03:33 +02:00
housekeeping Merge "Use flake8-import-order plugin" 2017-09-20 21:47:10 +00:00
queue Fix controller worker graceful shutdown 2019-11-21 10:30:40 +01:00
worker Fix uncaught DB exception when trying to get a spare amphora 2020-02-25 09:16:02 +01:00
__init__.py Initial directory skeleton 2014-09-04 15:28:10 -06:00