Alon Bar-Lev has uploaded a new change for review.

Change subject: vdsm: packages: do not re-start network service
......................................................................

vdsm: packages: do not re-start network service

rhel does not like re-start (second start) of network service. it fails
on various of errors.

Change-Id: I98853de084666d689f5a3d214bf4626d4a4149dc
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M src/plugins/ovirt-host-deploy/vdsm/packages.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy 
refs/changes/21/17321/1

diff --git a/src/plugins/ovirt-host-deploy/vdsm/packages.py 
b/src/plugins/ovirt-host-deploy/vdsm/packages.py
index 50452ea..94db16d 100644
--- a/src/plugins/ovirt-host-deploy/vdsm/packages.py
+++ b/src/plugins/ovirt-host-deploy/vdsm/packages.py
@@ -176,7 +176,9 @@
         # so we do this manually.
         #
         if self.services.exists('network'):
-            self.services.state('network', True)
+            # rhel network fails on second restart
+            if not self.service.status('network'):
+                self.services.state('network', True)
             self.services.startup('network', True)
 
         #


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I98853de084666d689f5a3d214bf4626d4a4149dc
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to