I was collaborating with my Polish colleague this late afternoon to enhance a 
few snippets. After we were done, I put his name as part of embedded comments 
of a template. 

Suddenly, none of our systems could PXE boot! For CentOS, I observed:

Errors downloading kickstart file

Unable to download the kickstart file.  Please modify the
kickstart parameter below or press Cancel to proceed as an
interactive installation

http://192.168.123.3/cblr/svc/op/ks/system/ctos1

[OK] [Cancel]

# cobbler system getks --name=ctos1  returns
### ERROR ###
Unexpected remote error, check the server side logs for further info
<type 'exceptions.NameError'>:global name 'out_path' is not defined

Apache error log shows:
[...]
[Sat Oct 06 20:48:57 2012] [error] [client 192.168.123.102] Fault: <Fault 1: 
"<type 'exceptions.NameError'>:global name 'out_path' is not defined">
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102] mod_wsgi 
(pid=1774): Exception occurred processing WSGI script 
'/var/www/cobbler/svc/services.py'.
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102] Traceback (most 
recent call last):
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]   File 
"/var/www/cobbler/svc/services.py", line 83, in application
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]     content = func( 
**form )
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]   File 
"/usr/lib/python2.6/site-packages/cobbler/services.py", line 76, in ks
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]     data = 
self.remote.generate_kickstart(profile,system,REMOTE_ADDR,REMOTE_MAC)
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]   File 
"/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]     return 
self.__send(self.__name, args)
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]   File 
"/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]     
verbose=self.__verbose
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]   File 
"/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]     return 
self._parse_response(h.getfile(), sock)
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]   File 
"/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]     return u.close()
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]   File 
"/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
[Sat Oct 06 20:49:01 2012] [error] [client 192.168.123.102]     raise 
Fault(**self._stack[0])
[...]

It's just a simple character ł  As soon as I remove it, everything goes back to 
normal.  Anytime it's in, the hell breaks loose :-(

Finally, with a sincere apology to my colleague, I put in his nickname into the 
comment as a get around.

Looks like the Cheetah template engine has some issues with utf8?

Regards,

--Zack
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to