[et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Michael DeHaan mdehaan at redhat.com
Wed Jun 4 15:11:16 UTC 2008


Michael DeHaan wrote:
> Joseph Boyer Jr. wrote:
>> Hi Mike...
>>
>> Here are the trace backs from wget 
>> http://10.0.254.169/cblr/svc/op/ks/system/ny0dlab01, and 
>> /var/log/cobbler/cobbler.log
>>
>> Wget ks template...
>>
>> ExpatError: not well-formed (invalid token): line 219, column 5
>>
>> </pre>
>>
>> Cobbler.log
>>
>> 2008-06-04 10:24:16,738 - remote - login succeeded; 
>> user(jboyer at LNHOLDINGS.COM)
>> 2008-06-04 10:24:16,815 - remote - get_profiles; user(?)
>> 2008-06-04 10:24:18,633 - remote - generate_kickstart; user(?)
>> 2008-06-04 10:24:18,634 - api - generate_kickstart
>> 2008-06-04 10:24:18,817 - api - Exception occured: exceptions.NameError
>> 2008-06-04 10:24:18,817 - api - Exception value: global name '_' is 
>> not defined
>> 2008-06-04 10:24:18,822 - api - Exception Info:
>>   File "/usr/lib/python2.4/site-packages/cobbler/kickgen.py", line 
>> 80, in generate_kickstart_for_profile
>>     data = self.templar.render(kfile, meta, None, g)
>>    File "/usr/lib/python2.4/site-packages/cobbler/templar.py", line 
>> 88, in render
>>     print _("There appears to be an formatting error in the template 
>> file.")
>>
>>   
>
> Can you email me your template file?   (http://cobbler.pastebin.com 
> works pretty well for this... perhaps you want to join #cobbler on 
> irc.freenode.net and share it)
>
> It appears that there is something wrong about a "_", and around 219, 
> but without looking at the file it's hard to say.
>
> --Michael
>
Actually the bit about "_" is an error while trying to give you the 
error message.


This will fix your logging so you can see the rest of the Cheetah error 
in /var/log/cobbler/cobbler.log:

--- a/cobbler/templar.py
+++ b/cobbler/templar.py
@@ -17,9 +17,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 import os
 import os.path
 import glob
-import utils
 from cexceptions import *
 from Cheetah.Template import Template
+from utils import *
+import utils

 class Templar:

I have already applied that fix to the logging messages, though the 
error should be a syntax one you still need to fix, after reading the 
logs to figure out what it is.

>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools




More information about the et-mgmt-tools mailing list