Hi,

I just upgraded from cobbler.noarch 1.2.9-1.el5 to  cobbler - 
1.4.3-4.el5.noarch.

After the upgrade I cannot access the distros, profiles, etc. from the webgui.
Below is an example of the traceback I get:
Mod_python error: "PythonHandler index"

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/web/index.py", line 130, in handler
     content = func( **form )

   File "/usr/lib/python2.4/site-packages/cobbler/webui/CobblerWeb.py", line 
162, in distro_list
     return self.__render( 'distro_list.tmpl', {

   File "/usr/lib/python2.4/site-packages/cobbler/webui/CobblerWeb.py", line 
102, in __render
     return str(tmpl)

   File "/usr/lib64/python2.4/site-packages/Cheetah/Template.py", line 982, in 
__str__
     def __str__(self): return getattr(self, mainMethName)()

   File "/usr/lib/python2.4/site-packages/cobbler/webui/master.py", line 247, 
in respond
     self.body(trans=trans)

   File "_usr_share_cobbler_webui_templates_distro_list_tmpl.py", line 124, in 
body

NotFound: cannot find 'name' while searching for 'distro.name'


Cobbler check shows the following:

(geppetto pts4) # cobbler check
The following potential problems were detected:
#0: you need to set some SELinux content rules to ensure cobbler works 
correctly in your SELinux environment, run the following: /usr/sbin/semanage 
fcontext -a -t public_content_t "/var/lib/tftpboot/.*" && /usr/sbin/semanage 
fcontext -a -t public_content_t "/var/www/cobbler/images/.*"
#1: since iptables may be running, ensure 69, 80, 25150, and 25151 are unblocked
(geppetto pts4) #

I tried running the above selinux commands modified to reflect the fact that
my tftp root is in /tftpboot not in /var/lib/tftpboot. That is where the
tftp-server package on el5 puts it. When I run that command I get the following
output:

(geppetto pts4) # /usr/sbin/semanage fcontext -a -t public_content_t 
"/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t 
"/var/www/cobbler/images/.*"
/usr/sbin/semanage: File context for /tftpboot/.* already defined
(geppetto pts4) #

Anyway I do not think this is the problem because if I put selinux in permissive
I still get the same errors.

Can someone tell me how to troubleshoot and fix this?

This is a centos 5.2 box with all of the updates.

Regards,

-- 
Tom Diehl               [email protected]             Spamtrap address 
[email protected]

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to