RE: [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

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

 



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...

<pre>
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

  File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/var/www/cobbler/svc/services.py", line 82, in handler
    content = func( **form )

  File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
    data = self.remote.generate_kickstart(profile,system,REMOTE_ADDR,REMOTE_MAC)

  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)

  File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose

  File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)

  File "/usr/lib64/python2.4/xmlrpclib.py", line 1281, in _parse_response
    p.feed(response)

  File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
    self._parser.Parse(data, 0)

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.")

thanks,
joe

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


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

Joseph Boyer Jr. wrote:
> OH forgot to mention I suspect the issue to be that /var/lib/cobbler/snippets is not accessible by the http server. If I move the snippets directory some where accessible by apache than the ks template will be render but the none of the snippets are ran????
>

That's not the problem as cobblerd reads that directory, not Apache.
Removing it will obviously keep it from being found.

What you likely have is a Cheetah syntax error, which I'm not sure why
you didn't have before, but that's likely it.   You should
be able to find more information in /var/log/cobbler/cobbler.log.
Paste the last few tracebacks and we'll see what's up.

--Michael


>
>
> -----Original Message-----
> From: et-mgmt-tools-bounces@xxxxxxxxxx [mailto:et-mgmt-tools-bounces@xxxxxxxxxx] On Behalf Of Joseph Boyer Jr.
> Sent: Tuesday, June 03, 2008 6:24 PM
> To: Fedora/Linux Management Tools
> Subject: RE:  [ANNOUNCE] Cobbler 1.0.1 (minor fixes)
>
> Looks good thanks again.
>
> However now back to my original issue....
>
> I am having a problem with kickstart templates that are using snippets. If I have snippets in my ks template cobbler will not render the ks and hence the install fails.
>
> Here is the error from the web interface:
> Mod_python error: "PythonHandler services"
>
> Traceback (most recent call last):
>
>   File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
>     result = object(req)
>
>   File "/var/www/cobbler/svc/services.py", line 82, in handler
>     content = func( **form )
>
>   File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
>     data = self.remote.generate_kickstart(profile,system,REMOTE_ADDR,REMOTE_MAC)
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
>     return self.__send(self.__name, args)
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
>     verbose=self.__verbose
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
>     return self._parse_response(h.getfile(), sock)
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
>     return u.close()
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
>     raise Fault(**self._stack[0])
>
> Fault:
>
>
> And here is the error from the HTTP server when anaconda trys to pull down the ks template from the server
>
> <pre>
> Mod_python error: "PythonHandler services"
>
> Traceback (most recent call last):
>
>   File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
>     result = object(req)
>
>   File "/var/www/cobbler/svc/services.py", line 82, in handler
>     content = func( **form )
>
>   File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
>     data = self.remote.generate_kickstart(profile,system,REMOTE_ADDR,REMOTE_MAC)
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
>     return self.__send(self.__name, args)
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
>     verbose=self.__verbose
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
>     return self._parse_response(h.getfile(), sock)
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 1281, in _parse_response
>     p.feed(response)
>
>   File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
>     self._parser.Parse(data, 0)
>
> ExpatError: not well-formed (invalid token): line 219, column 5
>
> </pre>
>
> Let me know more info. I would be happy to show my snippets and ks templates. I have some cool stuff...
>

_______________________________________________
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