Exits process when encountered by a database exception 69/7169/1
authorBenjamin Diaz <bdiaz@whitestack.com>
Fri, 25 Jan 2019 17:30:20 +0000 (14:30 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Fri, 1 Feb 2019 12:56:15 +0000 (09:56 -0300)
commita96898dfaf088ac15560d15a7dcaf982c671ac2f
tree55121451eb6be99cceaf68dd7f63482ba6d664f6
parentb77fe26906b4acdf5f2b110f07433382520f44ff
Exits process when encountered by a database exception

Database errors could mean database node failure. In this cases, the process
should exit so it could be automatically restarted (when handled by Docker Swarm, K8s, etc)
so it can obtain a new DB connection to an alive node.

Change-Id: I42a3954fe238a0445101eb71add79aaef4315c2e
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
osm_policy_module/core/agent.py