Ido Barkan has uploaded a new change for review.

Change subject: net: always persist owned ifcfg files on ovirt node
......................................................................

net: always persist owned ifcfg files on ovirt node

Change-Id: Ibc717b86194a32c050d346e235a5c35fd318e1ff
Signed-off-by: Ido Barkan <[email protected]>
Buh-Url: https://bugzilla.redhat.com/1203422
---
M vdsm/vdsm-store-net-config.in
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/33/44133/1

diff --git a/vdsm/vdsm-store-net-config.in b/vdsm/vdsm-store-net-config.in
index c19d5e0..98b5776 100755
--- a/vdsm/vdsm-store-net-config.in
+++ b/vdsm/vdsm-store-net-config.in
@@ -37,8 +37,19 @@
     rm -rf "$NET_CONF_BACK_DIR"/*
 }
 
+node_persist_owned_ifcfgs() {
+    for f in $(find "$NET_CONF_DIR" -type f); do
+        if grep -q "# Generated by VDSM version" "$f"; then
+            ovirt_store_config "$f"
+        fi
+    done
+}
+
 unified_node_persist() {
     unified_nonnode_persist
+    # we need to persist ifcfg files as well so that they are available earlier
+    # on boot time
+    node_persist_owned_ifcfgs
 
     # oVirt node ovirt_store_config puts the dir in persistent storage and
     # bind mounts it in the original place. So that's all we really need to do.


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc717b86194a32c050d346e235a5c35fd318e1ff
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Ido Barkan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to