Change in vdsm[master]: After fail to connect to supervdsm more than 3 time restart ...
ybronhei at redhat.com
ybronhei at redhat.com
Mon Feb 11 16:30:54 UTC 2013
Yaniv Bronhaim has uploaded a new change for review.
Change subject: After fail to connect to supervdsm more than 3 time restart the process
......................................................................
After fail to connect to supervdsm more than 3 time restart the process
When connect is failed more than 3 times it might be that
multiprocessing couldn't create the socket file. Killing the
process and try again will create the socket properly
Change-Id: Iafe112893a76686edd2949d4f40b734646fd74df
Bug-Id: https://bugzilla.redhat.com/show_bug.cgi?id=910005
Signed-off-by: Yaniv Bronhaim <ybronhei at redhat.com>
---
M vdsm/supervdsm.py
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/32/11932/1
diff --git a/vdsm/supervdsm.py b/vdsm/supervdsm.py
index 10abae0..65ad06b 100644
--- a/vdsm/supervdsm.py
+++ b/vdsm/supervdsm.py
@@ -194,7 +194,11 @@
def launch(self):
self._firstLaunch = False
self._start()
- utils.retry(self._connect, Exception, timeout=60)
+ try:
+ utils.retry(self._connect, Exception, timeout=60, tries=3)
+ except:
+ self.kill()
+ self.launch()
def __getattr__(self, name):
return ProxyCaller(self, name)
--
To view, visit http://gerrit.ovirt.org/11932
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iafe112893a76686edd2949d4f40b734646fd74df
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei at redhat.com>
More information about the vdsm-patches
mailing list