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 wrote:
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'
Did you upgrade using yum?
rpm with --force or --noscripts would be a bad thing to do, for instance.
There may be more information in /var/log/cobbler/*.log (look towards the bottom for other traceback info).
Anyway I do not think this is the problem because if I put selinux in permissive I still get the same errors.
Correct. The above message has nothing to do with SELinux.
On Mon, 23 Mar 2009, Michael DeHaan wrote:
Tom Diehl wrote:
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'
Did you upgrade using yum?
Yes! The only way to fly! I got the rpm from epel testing.
rpm with --force or --noscripts would be a bad thing to do, for instance.
I would never do that but I understand you had to ask. :-)
There may be more information in /var/log/cobbler/*.log (look towards the bottom for other traceback info).
I just tried it again and selected distros from the webui, the following is what showed up in the cobbler log:
2009-03-23 12:58:09,954 - api - login attempt; user(cobbler) 2009-03-23 12:58:09,955 - api - authenticate; ['cobbler', True] 2009-03-23 12:58:09,955 - api - login succeeded; user(cobbler) 2009-03-23 12:58:09,958 - api - calling authorize for resource ['/cobbler/web/', None, None]; user(cobbler) 2009-03-23 12:58:09,958 - api - authorization result: True; user(?) 2009-03-23 12:58:10,125 - api - get_distros; user(?)
I can put the whole log up on the web server for you to look at if you think it will be useful.
Is there some kind of debug mode I need to enable?
Regards,
cobbler@lists.fedorahosted.org