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

Thomas Foster thomas.foster80 at gmail.com
Tue May 20 02:47:14 UTC 2014


Is the user you are using have rights to see that repository?
On May 19, 2014 8:06 PM, "Jeremy Darr" <jeremy.darr at gmail.com> wrote:

> 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
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140519/0714491a/attachment.htm>


More information about the Spacewalk-list mailing list