Exits mon-evaluator process when encountered by a database exception 97/7197/2
authorBenjamin Diaz <bdiaz@whitestack.com>
Mon, 28 Jan 2019 22:03:39 +0000 (19:03 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Tue, 5 Feb 2019 15:07:16 +0000 (12:07 -0300)
commit8303862ef038a0db43cbddd5c152c97928af1957
treec8813e3d6e12d2eabc2c84a13d7439d8a626da8b
parent7efdb35916ac96bcaa548b62629402ca279e4b56
Exits mon-evaluator 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: I2575062d4bd23b3902b7c2ed14553d5201933002
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
osm_mon/cmd/mon_collector.py
osm_mon/collector/collector.py
osm_mon/evaluator/evaluator.py
osm_mon/tests/collector/test_collector.py