Feature 8681: Add VCA HA capabilities 27/9227/1
authorDavid Garcia <david.garcia@canonical.com>
Fri, 19 Jun 2020 09:40:18 +0000 (11:40 +0200)
committergarciadav <david.garcia@canonical.com>
Tue, 30 Jun 2020 09:10:05 +0000 (11:10 +0200)
commit677f444effd4d7020976deac4a4b769a814303af
tree4dd7b55986e55b0cf59fab4b36bf27f589b65262
parentac86029a4b13e8654c135cd1780c71631d2ebaf9
Feature 8681: Add VCA HA capabilities

- juju watcher: fix exception handling when websocket is closed
- libjuju.py:
  - Get vca endpoints from database (if exists)
  - Update vca endpoints in database
  - Get controller per operation (remove controller from class attribute)
  - Add health check: Every 5 minutes the connection to the controller will be tested.
- Dockerfile: update it to 18.04

Change-Id: Ifa0a3a705d48fd736a9634b0722bdc914003b497
Signed-off-by: David Garcia <david.garcia@canonical.com>
(cherry picked from commit 2f66c4df28308b5b2747bb207e7797932e502436)
devops-stages/stage-test.sh
n2vc/juju_watcher.py
n2vc/libjuju.py
n2vc/n2vc_conn.py
n2vc/utils.py