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 06-04-2008, 03:11 PM
Michael DeHaan
 
Default Cobbler 1.0.1 (minor fixes)

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


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-04-2008, 04:22 PM
"Joseph Boyer Jr."
 
Default Cobbler 1.0.1 (minor fixes)

Hi Mike...

I have posted my tmpl file to http://cobbler.pastebin.com and here they are as well. I have also included my snippets in this email.

Thanks for the help!

Cheers,
joe

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Wednesday, June 04, 2008 11:11 AM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

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

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

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-04-2008, 04:26 PM
"Joseph Boyer Jr."
 
Default Cobbler 1.0.1 (minor fixes)

Forgot to mention that it is the rpmLIST snippet that is breaking things, it did work well in .8.3 all others seem to work

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Joseph Boyer Jr.
Sent: Wednesday, June 04, 2008 12:22 PM
To: Fedora/Linux Management Tools
Subject: RE: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Hi Mike...

I have posted my tmpl file to http://cobbler.pastebin.com and here they are as well. I have also included my snippets in this email.

Thanks for the help!

Cheers,
joe

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Wednesday, June 04, 2008 11:11 AM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

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

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



_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-04-2008, 11:55 PM
Michael DeHaan
 
Default Cobbler 1.0.1 (minor fixes)

Joseph Boyer Jr. wrote:

Forgot to mention that it is the rpmLIST snippet that is breaking things, it did work well in .8.3 all others seem to work


It looks like you wanted "SNIPPET::rpmLIST" in your template, not
"snippet rpmLIST". Yes?


Incidentally you probably want to just use the "Advanced Snippets" stuff
mentioned on the Wiki now as it means you no longer need that #include
hack. Cobbler will allow you to maintain a package list that varies
based on the profile and/or system. Check it out...




Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Joseph Boyer Jr.
Sent: Wednesday, June 04, 2008 12:22 PM
To: Fedora/Linux Management Tools
Subject: RE: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Hi Mike...

I have posted my tmpl file to http://cobbler.pastebin.com and here they are as well. I have also included my snippets in this email.

Thanks for the help!

Cheers,
joe

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Wednesday, June 04, 2008 11:11 AM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

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



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



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



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

Thread Tools




All times are GMT. The time now is 12:26 AM.

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