Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: backend: node upgrade - catch end of connection
......................................................................

backend: node upgrade - catch end of connection

After full oVirt Node upgrade triggered by oVirt Engine, the node
reboots and the connection between node and engine can be
unexpectedly closes generating IOException (pipe broken).
This patch catch this exception and  sets the deploy
status to Reboot.

Change-Id: I01c2fcaf4db6d18f85de52d40077d68cd39aaa2e
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1074257
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OVirtNodeUpgrade.java
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/67/25967/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OVirtNodeUpgrade.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OVirtNodeUpgrade.java
index e6b4d2d..ed1f200 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OVirtNodeUpgrade.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OVirtNodeUpgrade.java
@@ -236,6 +236,10 @@
             );
             throw e;
         }
+        catch (IOException e) {
+            _deployStatus = DeployStatus.Reboot;
+            log.debugFormat("End of connection with node {0}", 
_vds.getHostName());
+        }
         catch (Exception e) {
             log.errorFormat("Error during node {0} upgrade", 
_vds.getHostName(), e);
 


-- 
To view, visit http://gerrit.ovirt.org/25967
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I01c2fcaf4db6d18f85de52d40077d68cd39aaa2e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to