[et-mgmt-tools] cobbler-0.6.5-1 - CentOS 4.5 - adding a profile

Tom Brown tom at ng23.net
Thu Nov 22 01:42:03 UTC 2007


Hi

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 
--kickstart=/var/www/cobbler/kickstarts/CentOS-4.5-i386/ks.cfg
#

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)()
  File 
"cheetah_DynamicallyCompiledCheetahTemplate_1195695012_33_33067.py", 
line 169, in respond
  File 
"cheetah_DynamicallyCompiledCheetahTemplate_1195695012_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 
/var/www/cobbler/kickstarts/centos/ks.cfg

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

%pre
# Determine how many drives we have
set \$(list-harddrives)
let numd=\$#/2
d1=\$1
d2=\$3

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 ?

thanks





More information about the et-mgmt-tools mailing list