Merge pull request #80 from gnuoy/default-workload-statuses

Add dict of non-standard workload statuses
This commit is contained in:
Frode Nordahl
2018-07-10 10:06:49 +02:00
committed by GitHub

View File

@@ -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.