Change in vdsm[master]: [WIP]merge setIPCChannel and supervdsmProxy init

lvroyce at linux.vnet.ibm.com lvroyce at linux.vnet.ibm.com
Sun Jan 20 05:23:35 UTC 2013


Royce Lv has uploaded a new change for review.

Change subject: [WIP]merge setIPCChannel and supervdsmProxy init
......................................................................

[WIP]merge setIPCChannel and supervdsmProxy init

Change-Id: I0c031b7becf2fe123cabe25c76237655364f735b
Signed-off-by:Royce Lv<lvroyce at linux.vnet.ibm.com>
---
M vdsm/supervdsm.py
1 file changed, 2 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/95/11195/1

diff --git a/vdsm/supervdsm.py b/vdsm/supervdsm.py
index df0c8a3..32546ac 100644
--- a/vdsm/supervdsm.py
+++ b/vdsm/supervdsm.py
@@ -93,19 +93,12 @@
     """
     _log = logging.getLogger("SuperVdsmProxy")
 
-    def __init__(self):
+    def __init__(self, address=ADDRESS):
         self.proxyLock = threading.Lock()
         self._firstLaunch = True
 
-        # Declaration of public variables that keep files' names that svdsm
-        # uses. We need to be able to change these variables so that running
-        # tests doesn't disturb and already running VDSM on the host.
-        self.setIPCPaths(PIDFILE, TIMESTAMP, ADDRESS)
-
-    def setIPCPaths(self, pidfile, timestamp, address):
-        self.pidfile = pidfile
-        self.timestamp = timestamp
         self.address = address
+        utils.retry(self._connect, Exception, timeout=60)
 
     def open(self, *args, **kwargs):
         return self._manager.open(*args, **kwargs)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c031b7becf2fe123cabe25c76237655364f735b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Royce Lv <lvroyce at linux.vnet.ibm.com>


More information about the vdsm-patches mailing list