Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: setup: start vdsmd only if not running
......................................................................

packaging: setup: start vdsmd only if not running

in LATE_SETUP stage start vdsmd only if it is not
already running, avoiding errors due to
'cannot start VDS daemon when another instance runs'

Change-Id: Ic12fec8ef572ba9ad0bc5b3773fa8e1e1d16c4fc
Reported-By: Leonid Natapov <[email protected]>
Signed-off-by: Sandro Bonazzola <[email protected]>
---
M src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py
1 file changed, 9 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/72/18372/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py 
b/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py
index e18af50..93a3c66 100644
--- a/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py
+++ b/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py
@@ -110,12 +110,17 @@
     )
     def _late_setup(self):
         #We need vdsmd up for customization checks
-        self.services.state(
+        if not self.services.status(
             name=self.environment[
                 ohostedcons.VDSMEnv.VDSMD_SERVICE
-            ],
-            state=True
-        )
+            ]
+        ):
+            self.services.state(
+                name=self.environment[
+                    ohostedcons.VDSMEnv.VDSMD_SERVICE
+                ],
+                state=True
+            )
         self._connect()
 
     @plugin.event(


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic12fec8ef572ba9ad0bc5b3773fa8e1e1d16c4fc
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to