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

Jeremy Darr jeremy.darr at gmail.com
Tue May 20 17:34:18 UTC 2014


Yes, the user that I am using has access to all repos/channels as it is a
Spacewalk admin user.

On Mon, May 19, 2014 at 9:47 PM, Thomas Foster <thomas.foster80 at gmail.com>
> wrote:
>
> Is the user you are using have rights to see that repository?
>
>
> On Mon, May 19, 2014 at 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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140520/5e461fb7/attachment.htm>


More information about the Spacewalk-list mailing list