Martin Sivák has uploaded a new change for review. Change subject: Add support for maintenance mode reporting ......................................................................
Add support for maintenance mode reporting Change-Id: Ib21774d33fd50bc1da47a60b6fd48859ca27cfda Signed-off-by: Martin Sivak <m...@montik.net> --- M src/ovirt_hosted_engine_setup/vm_status.py 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup refs/changes/48/21648/1 diff --git a/src/ovirt_hosted_engine_setup/vm_status.py b/src/ovirt_hosted_engine_setup/vm_status.py index bed0ee6..58373a3 100644 --- a/src/ovirt_hosted_engine_setup/vm_status.py +++ b/src/ovirt_hosted_engine_setup/vm_status.py @@ -46,6 +46,7 @@ 'host-ts': _('Host timestamp'), 'live-data': _('Status up-to-date'), 'extra': _('Extra metadata (valid at timestamp)'), + 'maintenance': _('Local maintenance') } def __init__(self): @@ -60,6 +61,11 @@ _('Cannot connect to the HA daemon, please check the logs.\n') ) all_host_stats = {} + + cluster_stats = ha_cli.get_all_stats(client.HAClient.StatModes.GLOBAL) + if cluster_stats.get(client.HAClient.GlobalMdFlags.MAINTENANCE, False): + print _('\n\n!! Cluster is in GLOBAL MAINTENANCE mode !!\n') + for host_id, host_stats in all_host_stats.items(): print _('\n\n--== Host {host_id} status ==--\n').format( host_id=host_id -- To view, visit http://gerrit.ovirt.org/21648 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib21774d33fd50bc1da47a60b6fd48859ca27cfda Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Martin Sivák <msi...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches