Re: [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx)
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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

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

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux