Simon Woolsgrove wrote:
> I just started playing with search in the WebUI and noted that I get these 
> errors.  This is a update to cobbler-1.6.1 on RHEL 5 from a previous 1-4.2 
> (although that may have been a git based rpm).  I have not had time to debug 
> yet but thought I would post in case of user error ... or clues on where to 
> go look.  Browser is FF on FC9.
>
>
> Simply submitting search without entering any field gives
>
>
> 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 
> 197, in distro_search_execute
>     return 
> self.__search_execute("distro",key1,value1,key2,value2,key3,value3,key4,value4,key5,value5)
>
>   File "/usr/lib/python2.4/site-packages/cobbler/webui/CobblerWeb.py", line 
> 178, in __search_execute
>     results = params['distros'] = self.remote.find_distro(criteria,True)
>
>   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: 
>
>
> I would have thought "nothing found" or entire list would return ?
>
>
> Searching for something that exists gives or using a wildcard gives the 
> following
>
>
> 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 
> 197, in distro_search_execute
>     return 
> self.__search_execute("distro",key1,value1,key2,value2,key3,value3,key4,value4,key5,value5)
>
>   File "/usr/lib/python2.4/site-packages/cobbler/webui/CobblerWeb.py", line 
> 192, in __search_execute
>     return self.__render( "%s_list.tmpl" % what, params)
>
>   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 279, 
> in respond
>     self.body(trans=trans)
>
>   File "_usr_share_cobbler_webui_templates_distro_list_tmpl.py", line 92, in 
> body
>
>   File "/usr/lib64/python2.4/site-packages/Cheetah/Template.py", line 1530, 
> in _handleCheetahInclude
>     self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
>
>   File "_usr_share_cobbler_webui_templates_paginate_tmpl.py", line 86, in 
> respond
>
> NotFound: cannot find 'pages'
>
>
> The above was a Distro search against these distros
>
> # cobbler distro report 
> distro               : rhel-4-u6-i386-as
> architecture         : i386
> breed                : redhat
> created              : Mon Mar  9 09:57:59 2009
> comment              : 
> initrd               : /var/lib/cobbler/pxeboot/rhel-4-u6-i386-as/initrd.img
> kernel               : /var/lib/cobbler/pxeboot/rhel-4-u6-i386-as/vmlinuz
> kernel options       : {}
> ks metadata          : {'KSrepo': 'http://x.x.x.x/kickstart'}
> tree build time      : Thu Jan  1 01:00:00 1970
> modified             : Mon Mar  9 09:57:59 2009
> mgmt classes         : []
> os version           : rhel4
> owners               : ['admin']
> post kernel options  : {}
> redhat mgmt key      : <<inherit>>
> redhat mgmt server   : <<inherit>>
> template files       : {}
>
> distro               : rhel-4-u6-x86_64-as
> architecture         : x86_64
> breed                : redhat
> created              : Mon Mar  9 09:57:56 2009
> comment              : 
> initrd               : /var/lib/cobbler/pxeboot/rhel-4-u6-x86_64-as/initrd.img
> kernel               : /var/lib/cobbler/pxeboot/rhel-4-u6-x86_64-as/vmlinuz
> kernel options       : {}
> ks metadata          : {'KSrepo': 'http://x.x.x.x/kickstart'}
> tree build time      : Thu Jan  1 01:00:00 1970
> modified             : Mon Mar  9 09:57:56 2009
> mgmt classes         : []
> os version           : rhel4
> owners               : ['admin']
> post kernel options  : {}
> redhat mgmt key      : <<inherit>>
> redhat mgmt server   : <<inherit>>
> template files       : {}
>
> distro               : rhel-5-u2-x86_64-as
> architecture         : x86_64
> breed                : redhat
> created              : Mon Mar  9 09:58:02 2009
> comment              : 
> initrd               : /var/lib/cobbler/pxeboot/rhel-5-u2-x86_64-as/initrd.img
> kernel               : /var/lib/cobbler/pxeboot/rhel-5-u2-x86_64-as/vmlinuz
> kernel options       : {}
> ks metadata          : {'KSrepo': 'http://x.x.x.x/kickstart'}
> tree build time      : Thu Jan  1 01:00:00 1970
> modified             : Mon Mar  9 10:14:57 2009
> mgmt classes         : []
> os version           : rhel5
> owners               : ['admin']
> post kernel options  : {}
> redhat mgmt key      : <<inherit>>
> redhat mgmt server   : <<inherit>>
> template files       : {}
>
>
> Cheers,
> Simon
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

Ah this is what Peter Vreman was referring to on cobbler-devel, I bet.

I would suspect search works for a small number of search results (what 
I tested) but not when it exceeds the page limit (50, IIRC).

We can get this resolved for 1.6.3, please open up a Trac item at 
http://fedorahosted.org/cobbler so we don't forget!

--Michael


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

Reply via email to