Red Hat Bugzilla – Bug 1353537
hosted-engine --vm-status --json does not show global maintenance mode
Last modified: 2016-08-23 17:02:44 EDT
Version-Release number of selected component (if applicable): ovirt-hosted-engine-setup-2.0.0-1.el7.centos.noarch How reproducible: 100% Steps to Reproduce: 1. Put the cluster in global maintenance mode 2. Run "hosted-engine --vm-status --json" Actual results: No global maintenance field Expected results: Global maintenance should be shown
Verified on ovirt-hosted-engine-setup-2.0.1-1.el7ev.noarch Global maintenance disabled: # hosted-engine --vm-status --json {"1": {"live-data": true, "extra": "metadata_parse_version=1\nmetadata_feature_version=1\ntimestamp=6336 (Thu Jul 21 13:37:32 2016)\nhost-id=1\nscore=3400\nmaintenance=False\nstate=EngineUp\nstopped=False\n", "hostname": "rose05.qa.lab.tlv.redhat.com", "host-id": 1, "engine-status": {"health": "good", "vm": "up", "detail": "up"}, "score": 3400, "stopped": false, "maintenance": false, "crc32": "d0d04c62", "host-ts": 6336}, "global_maintenance": false} # hosted-engine --set-maintenance --mode=global # hosted-engine --vm-status --json {"1": {"live-data": true, "extra": "metadata_parse_version=1\nmetadata_feature_version=1\ntimestamp=6399 (Thu Jul 21 13:38:35 2016)\nhost-id=1\nscore=3400\nmaintenance=False\nstate=EngineUp\nstopped=False\n", "hostname": "rose05.qa.lab.tlv.redhat.com", "host-id": 1, "engine-status": {"health": "good", "vm": "up", "detail": "up"}, "score": 3400, "stopped": false, "maintenance": false, "crc32": "6da399ca", "host-ts": 6399}, "global_maintenance": true}
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-1744.html