[node-patches] Change in ovirt-node[ovirt-3.5]: settle udev when NICs appear for vdsm

rbarry at redhat.com rbarry at redhat.com
Fri Aug 7 17:17:01 UTC 2015


Ryan Barry has uploaded a new change for review.

Change subject: settle udev when NICs appear for vdsm
......................................................................

settle udev when NICs appear for vdsm

Change-Id: I958c910c88e631eea44534c6ed8dce6f8d4760a0
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/74/44574/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index c0bbd2c..ad47bc0 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -874,9 +874,11 @@
 
         # A few services need to be restarted to pickup the newly bind-mounted
         # config files (mounted in by the preceeding mount_config call)
+        service network stop
+        udevsettle --timeout=10
         mount -a
         swapon -a
-        service network restart
+        service network start
         service auditd restart
     fi
     log "Updating $OVIRT_DEFAULTS"
@@ -924,6 +926,7 @@
             rm -f /etc/udev/rules.d/70-persistent-net.rules
             udevadm control --reload-rules
             udevadm trigger --action=add --subsystem-match=net
+            udevadm settle
         }
     }
 


-- 
To view, visit https://gerrit.ovirt.org/44574
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I958c910c88e631eea44534c6ed8dce6f8d4760a0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list