[et-mgmt-tools] FW: Help with cobbler for dummies...

Michael DeHaan mdehaan at redhat.com
Wed Sep 5 18:10:46 UTC 2007

Maute, Kevin P CTR AFRL/VAOO wrote:
>>> When cobbler expands $insert_cobbler_system_definitions I get 2 host
>>> generic entries which still have the invalid entry.  How 

Ugh .... still had a bug in there that can happen when the following 
conditions are true:
     (A) a system doesn't have a --mac-address set
     (B) the --name is not a MAC
     (C) manage_dhcp is turned on

The fix is just:

diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 8302504..03eeb02 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -153,7 +153,7 @@ class BootSync:
             if mac is None or mac == "":
                 # can't write a DHCP entry for this system
                 # FIXME: should this be a warning?
-                pass
+                continue
             counter = counter + 1
             systxt = ""

I've checked this in upstream (git), though if you just want to apply 
the patch above that works also.   This will also be included in 0.6.2, 
which I do not have a
ETA on when we want to release this yet.   That will probably be in a 
few weeks to give some time for additional testing and a few minor 
features to get worked in.


More information about the et-mgmt-tools mailing list