Is the user you are using have rights to see that repository? On May 19, 2014 8:06 PM, "Jeremy Darr" <[email protected]> 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 > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-list >
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
