For the below.  I don't have my home box setup for virt yet, but this seems
like it should do the trick.  I'll test it out at work today myself.

On Mon, 09 Mar 2009 17:43:07 -0400, Michael DeHaan <mdeh...@redhat.com>
wrote:
> James Cammarata wrote:
>> I'm testing some kickstart stuff on a Xen system and noticed the
>> following:
>>
>> eth0: static, with ip and mac, bridge virbr0
>> eth1: bond slave to bond0, mac set, bridge xenbr0
>> eth2: bond slave to bond0, mac set, bridge xenbr0
>> bond0: static, ip set, no mac, no bridge
>>
>> Results in a xen vm with the following network line:
>>
>> vif = [ "mac=00:16:3E:4C:C9:F8,bridge=xenbr0",
>> "mac=00:16:3E:4C:C9:F7,bridge=xenbr0",
>> "mac=00:16:3E:4C:C9:F6,bridge=virbr0",
>> "mac=00:16:3e:16:f5:10,bridge=virbr0" ]
>>
>> So, it would seem that there is a bug which causes bonded interfaces to
>> have a vm nic created for them, which should be excluded.  I'm running
>> off
>> the devel tree, so this should be very close to the bleeding edge.
>>
>>   
> Seems like koan needs to be taught about this.
> 
> (xencreate.py, qcreate.py)
> 
> --Michael
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

From 3914fc700dbcde8e7a1fa8f02cc795fa0ea5fa04 Mon Sep 17 00:00:00 2001
From: James Cammarata <j...@sngx.net>
Date: Wed, 11 Mar 2009 00:35:51 -0500
Subject: [PATCH] Stop bond master from having virt interfaces created

---
 koan/qcreate.py   |    3 +++
 koan/xencreate.py |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/koan/qcreate.py b/koan/qcreate.py
index aae93c8..37f5e08 100755
--- a/koan/qcreate.py
+++ b/koan/qcreate.py
@@ -141,6 +141,9 @@ def start_install(name=None, ram=None, disks=None, mac=None,
         for iname in interfaces:
             intf = profile_data["interfaces"][iname]
 
+            if intf["bonding"] == "master":
+                continue
+
             mac = intf["mac_address"]
             if mac == "":
                 mac = random_mac()
diff --git a/koan/xencreate.py b/koan/xencreate.py
index 21ce35b..fd48c33 100755
--- a/koan/xencreate.py
+++ b/koan/xencreate.py
@@ -128,6 +128,9 @@ def start_install(name=None, ram=None, disks=None,
             counter = counter + 1
             intf = profile_data["interfaces"][iname]
 
+            if intf["bonding"] == "master": 
+                continue
+
             mac = intf["mac_address"]
             if mac == "":
                 mac = random_mac()
-- 
1.5.5.1

_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to