Dan Kenigsberg has uploaded a new change for review.

Change subject: network: filter out networks with unconfigured bonds
......................................................................

network: filter out networks with unconfigured bonds

Change-Id: I408fb59bf80c9ae69fb4abb45aae35507e910407
Signed-off-by: Petr Horáček <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/37569
Reviewed-by: Ondřej Svoboda <[email protected]>
Reviewed-by: Dan Kenigsberg <[email protected]>
Related-To: https://bugzilla.redhat.com/1189229
---
M vdsm/vdsm-restore-net-config
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/67/37967/1

diff --git a/vdsm/vdsm-restore-net-config b/vdsm/vdsm-restore-net-config
index f933547..4eddf49 100755
--- a/vdsm/vdsm-restore-net-config
+++ b/vdsm/vdsm-restore-net-config
@@ -84,7 +84,11 @@
     for net, attrs in nets.iteritems():
         bond = attrs.get('bonding')
         if bond is not None:
-            if bond not in available_bonds:
+            if bond not in bonds:
+                logging.error('Bond "%s" is not configured. '
+                              'Network "%s" will not be '
+                              'configured as a consequence', bond, net)
+            elif bond not in available_bonds:
                 logging.error('Some of the nics required by bond "%s" (%s) '
                               'are missing. Network "%s" will not be '
                               'configured as a consequence', bond,


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I408fb59bf80c9ae69fb4abb45aae35507e910407
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Petr Horáček <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to