Martin Sivák has uploaded a new change for review. Change subject: Correct corrupted block 0 when setting global maintenance ......................................................................
Correct corrupted block 0 when setting global maintenance Change-Id: I861efd082d13020c6d6425a772d07dd3eb254c7c Signed-off-by: Martin Sivak <[email protected]> --- M ovirt_hosted_engine_ha/client/client.py 1 file changed, 6 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha refs/changes/95/38495/1 diff --git a/ovirt_hosted_engine_ha/client/client.py b/ovirt_hosted_engine_ha/client/client.py index c418888..7ef49fa 100644 --- a/ovirt_hosted_engine_ha/client/client.py +++ b/ovirt_hosted_engine_ha/client/client.py @@ -202,8 +202,12 @@ global_stats = all_stats.get(0) if global_stats and len(global_stats): - md_dict = metadata.parse_global_metadata_to_dict( - self._log, global_stats) + try: + md_dict = metadata.parse_global_metadata_to_dict( + self._log, global_stats) + except Exception: + self._log.warn("Metadata block corrupted. Correcting.") + md_dict = {} else: md_dict = {} -- To view, visit https://gerrit.ovirt.org/38495 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I861efd082d13020c6d6425a772d07dd3eb254c7c Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-ha Gerrit-Branch: master Gerrit-Owner: Martin Sivák <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
