Someone else might be able to help more, I'm just kinda stabbing in the
dark here.  Do you have "net0" defined somewhere in your
/etc/cobbler/settings ?
On Apr 26, 2016 9:11 AM, "Nandakumar Nachimuthu" <[email protected]>
wrote:

> Here it goes,
>
> # ******************************************************************
>
> ddns-update-style interim;
>
> allow booting;
> allow bootp;
>
> ignore client-updates;
> set vendorclass = option vendor-class-identifier;
>
> # CHE subnets
> subnet 10.220.5.0 netmask 255.255.255.0 {
>
>         option broadcast-address        10.220.5.255;
>         option routers                  10.220.5.1;
>         option subnet-mask              255.255.255.0;
>
>         option nis-domain               "corp.atmel.com";
>         option domain-name              "corp.atmel.com";
>         option domain-name-servers      10.220.5.24, 10.150.66.20;
>         option ntp-servers              10.220.5.24, 10.150.66.20;
>
>         default-lease-time              21600;
>         max-lease-time                  43200;
>
>         next-server                     $next_server;
>         filename                        "/pxelinux.0";
>
> }
>
> #for dhcp_tag in $dhcp_tags.keys():
>     ## group could be subnet if your dhcp tags line up with your subnets
>     ## or really any valid dhcpd.conf construct ... if you only use the
>     ## default dhcp tag in cobbler, the group block can be deleted for a
>     ## flat configuration
> # group for Cobbler DHCP tag: $dhcp_tag
> group {
>         #for mac in $dhcp_tags[$dhcp_tag].keys():
>             #set iface = $dhcp_tags[$dhcp_tag][$mac]
>             #set site = $iface.hostname[0:3]
>             #set spwhost = {}
>             #set spwhost['CHE'] = 'chespwprx01.corp.atmel.com'
>     host $iface.hostname {
>         hardware ethernet $mac;
>         #if $iface.ip_address:
>         fixed-address $iface.ip_address;
>         #end if
>         #if $iface.hostname:
>         option host-name "$iface.hostname";
>         #end if
>         #if $iface.netmask:
>         option subnet-mask $iface.netmask;
>         #end if
>         #if $iface.gateway:
>         option routers $iface.gateway;
>         #end if
>         #if $iface.enable_gpxe:
>         if exists user-class and option user-class = "gPXE" {
>                 filename "http://
> $cobbler_server/cblr/svc/op/gpxe/system/$iface.owner";
>         } else if exists user-class and option user-class = "iPXE" {
>                 filename "http://
> $cobbler_server/cblr/svc/op/gpxe/system/$iface.owner";
>         } else {
>                 filename "undionly.kpxe";
>         }
>         #else
>         filename "$iface.filename";
>         #end if
>         ## Cobbler defaults to $next_server, but some users
>         ## may like to use $iface.system.server for proxied setups
>         next-server $spwhost[$site.upper()];
>         ## next-server $iface.next_server;
>     }
>         #end for
> }
> #end for
>
>
>
> Thanks
> Nandakumar
>
> On Tue, Apr 26, 2016 at 9:24 PM, Locane <[email protected]> wrote:
>
>> What does your template look like?
>> On Apr 26, 2016 4:48 AM, <[email protected]> wrote:
>>
>>> Hi
>>>
>>> I am new to cobbler.
>>>
>>> I am trying to resolve a cobbler issue, request your help/guidance on
>>> the same. we have spacewalk with cobbler. when I add a new host and do a
>>> cobbler sync, i am getting the below error and TASK FAILED.
>>>
>>> rendering DHCP files
>>> generating /etc/dhcp/dhcpd.conf
>>> Exception occured: <class 'cexceptions.CX'>
>>> Exception value: 'Error templating file, check cobbler.log for more
>>> details'
>>> when I cross check the cobbler.log, these entries were recorded...
>>>
>>> Mon Apr 25 14:44:45 2016 - WARNING | errors were encountered rendering
>>> the       template
>>> Mon Apr 25 14:44:45 2016 - WARNING |
>>> [{'code': u'VFFSL(SL,"net0",True)/mac',
>>> 'exc_val': NotFound("cannot find 'net0'",),
>>> 'lineCol': (2, 11),
>>> 'rawCode': u'${net0/mac}',
>>> 'time': 'Mon Apr 25 14:44:45 2016'}]
>>> _______________________________________________
>>> cobbler mailing list
>>> [email protected]
>>> https://lists.fedorahosted.org/admin/lists/[email protected]
>>>
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://lists.fedorahosted.org/admin/lists/[email protected]
>>
>>
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://lists.fedorahosted.org/admin/lists/[email protected]
>
>
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]

Reply via email to