FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

LinkBack Thread Tools
Old 11-22-2007, 12:42 AM
Tom Brown
Default [et-mgmt-tools] cobbler-0.6.5-1 - CentOS 4.5 - adding a profile


Since i have now managed to get my install going i can PXE machines (in
this case just in vmware) but i have what i imagine is a simple problem.

I am import a distro and then add a profile like so

# cobbler profile add --name=centos --distro=CentOS-4.5-i386


this works fine but then when i do the cobbler sync i get

# cobbler sync
sync distro: CentOS-4.5-i386
sync distro: CentOS-4.5-xen-i386
sync profile: CentOS-4.5-i386
sync profile: CentOS-4.5-xen-i386
sync profile: centos
There appears to be an formatting error in the template file.
For completeness, the traceback from Cheetah has been included below.
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/cobbler/action_sync.py", line
372, in validate_kickstart_for_specific_profile

self.apply_template(kfile, meta, dest)
File "/usr/lib/python2.3/site-packages/cobbler/action_sync.py", line
624, in apply_template

data_out = str(t)
File "/usr/lib/python2.3/site-packages/Cheetah/Template.py", line 994,
in __str__

def __str__(self): return getattr(self, mainMethName)()
"cheetah_DynamicallyCompiledCheetahTemplate_119569 5012_33_33067.py",
line 169, in respond
"cheetah_DynamicallyCompiledCheetahTemplate_119569 5012_33_33067.py",
line 85, in __errorCatcher3

File "<string>", line 0, in ?
NameError: name 'harddrives' is not defined
Error while rendering kickstart file
/var/www/cobbler/kickstarts/CentOS-4.5-i386/ks.cfg to

Now if i escape out the part of
/var/www/cobbler/kickstarts/CentOS-4.5-i386/ks.cfg causing the issue ie.

# Determine how many drives we have
set $(list-harddrives)
let numd=$#/2

It still fails but when i look back at the
/var/www/cobbler/kickstarts/CentOS-4.5-i386/ks.cfg file the back slashes
have been removed!

Is there something like a master .ks file thats over writing bits of the
custom .ks ?


et-mgmt-tools mailing list

Thread Tools

All times are GMT. The time now is 07:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org