From 6b3f7e5cc52c782e0442de4d7710332bd6e74b01 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Tue, 10 Jul 2018 08:59:01 +0100 Subject: [PATCH] Add dict of non-standard workload statuses --- zaza/utilities/openstack.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/zaza/utilities/openstack.py b/zaza/utilities/openstack.py index f62c4bd..4e1c6b6 100644 --- a/zaza/utilities/openstack.py +++ b/zaza/utilities/openstack.py @@ -83,6 +83,24 @@ UPGRADE_SERVICES = [ ] +WORKLOAD_STATUS_EXCEPTIONS = { + 'vault': { + 'workload-status': 'blocked', + 'workload-status-message': 'Vault needs to be initialized'}, + 'easyrsa': { + 'workload-status-message': 'Certificate Authority connected.'}, + 'etcd': { + 'workload-status-message': 'Healthy'}, + 'memcached': { + 'workload-status': 'unknown', + 'workload-status-message': ''}, + 'mongodb': { + 'workload-status': 'unknown', + 'workload-status-message': ''}, + 'postgresql': { + 'workload-status-message': 'Live'}} + + # Openstack Client helpers def get_ks_creds(cloud_creds, scope='PROJECT'): """Return the credentials for authenticating against keystone.