[Spacewalk-list] rhn-search not finding packages via XMLRPC API

Jeremy Darr jeremy.darr at gmail.com
Tue May 20 00:02:48 UTC 2014


Hello all,

I've recently updated my Spacewalk installation from 2.0 to 2.1, running on
Cent 5.10. I am trying to find a package via the XMLRPC API using a python
script - for testing purposes, we'll use the package 'mycustompackage',
which is present in a custom channel. I cannot find this package via the
API(presumably because it's in a custom channel), though the GUI package
search finds this package with no issues. Further, searching for packages
in basechannels produces results just fine. Using the following in a Python
shell:

>>> import xmlrpclib
>>> SATELLITE_URL = "http://spacewalk.mydomain.tld/rpc/api"
>>> SATELLITE_LOGIN = "Omitted"
>>> SATELLITE_PASSWORD = "Omitted"
>>> client = xmlrpclib.Server(SATELLITE_URL, verbose=0)
>>> key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD)
>>>
>>> results = client.packages.search.name(key,'strace')
>>> len(results)
3
>>> results = client.packages.search.name(key,'mycustompackage')
>>> len(results)
0
>>>

Again, to re-iterate, 'mycustompackage' is found via the GUI. Additionally,
rhnsearchd has built out the indexes just fine - going to my rhnsearchd
package indexes path (/var/lib/rhn/search/indexes/package on this server)
and running 'strings * | grep mycustompackage | wc -l' returns 982 lines.

Does anyone have any thoughts as to why I'm not seeing the results I should
be seeing?

- Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140519/d383c37b/attachment.htm>


More information about the Spacewalk-list mailing list