Douglas Schilling Landgraf has uploaded a new change for review. Change subject: engine_page: add exception for ENETUNREACH ......................................................................
engine_page: add exception for ENETUNREACH Due the change to use vdscli (xmlrpc) to communicate with VDSM to verify the networks available, it can cause an exception of Network is unreachable if there is no (ovirtmgmt) interface to communicate with vdsm. This patch handle the exception. Change-Id: I77db22b372820968a5af86d65fa1c40574a7ebd1 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1104009 Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com> --- M src/engine_page.py 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm refs/changes/27/28427/1 diff --git a/src/engine_page.py b/src/engine_page.py index bceda00..e2bb2a1 100644 --- a/src/engine_page.py +++ b/src/engine_page.py @@ -95,6 +95,8 @@ except socket_error as err: if err.errno == errno.ECONNREFUSED: LOGGER.debug("Connection refused with VDSM", exc_info=True) + elif err.errno == errno.ENETUNREACH: + LOGGER.debug("Network is unreachable to reach VDSM", exc_info=True) else: raise except Exception as err: -- To view, visit http://gerrit.ovirt.org/28427 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77db22b372820968a5af86d65fa1c40574a7ebd1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node-plugin-vdsm Gerrit-Branch: node-3.0 Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches