Royce Lv has uploaded a new change for review.

Change subject: [WIP]normalize startup: vdsm suicide when supervdsm framework 
error
......................................................................

[WIP]normalize startup: vdsm suicide when supervdsm framework error

Change-Id: I9eebf6dcaf55d08a5f44f20e5bcf40a90afee198
Signed-off-by: Royce Lv<[email protected]>
---
M vdsm/supervdsm.py
1 file changed, 2 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/07/10707/1

diff --git a/vdsm/supervdsm.py b/vdsm/supervdsm.py
index 3540793..44b01d9 100644
--- a/vdsm/supervdsm.py
+++ b/vdsm/supervdsm.py
@@ -24,6 +24,7 @@
 import logging
 import threading
 import uuid
+import signal
 from time import sleep
 from errno import ENOENT, ESRCH
 
@@ -75,10 +76,7 @@
         try:
             (ret, ex) = callMethod()
         except Exception:
-            with self._supervdsmProxy.proxyLock:
-                if not self._supervdsmProxy.isFunctional():
-                    self._supervdsmProxy.kill()
-                    self._supervdsmProxy.launch()
+            os.kill(os.getpid(), signal.SIGTERM)
             raise
         if ex:
             raise ex


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9eebf6dcaf55d08a5f44f20e5bcf40a90afee198
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Royce Lv <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to