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 <[email protected]>
---
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/96/28296/1

diff --git a/src/engine_page.py b/src/engine_page.py
index 98bec19..2bbbf6a 100644
--- a/src/engine_page.py
+++ b/src/engine_page.py
@@ -64,6 +64,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/28296
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: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to