<div dir="ltr"><div>Yes, the user that I am using has access to all repos/channels as it is a Spacewalk admin user.</div><br><div class="gmail_extra"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Mon, May 19, 2014 at 9:47 PM, Thomas Foster <<a href="mailto:thomas.foster80@gmail.com">thomas.foster80@gmail.com</a>> wrote:<br><br>Is the user you are using have rights to see that repository?<br><div class="gmail_extra" style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<br><br><div class="gmail_quote">On Mon, May 19, 2014 at 8:06 PM, Jeremy Darr <span dir="ltr"><<a href="mailto:jeremy.darr@gmail.com" target="_blank">jeremy.darr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial;font-size:small">Hello all,</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small"><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">
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:</div>
<div style="color:rgb(34,34,34);font-family:arial;font-size:small"><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> import xmlrpclib</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">
>>> SATELLITE_URL = "<a href="http://spacewalk.mydomain.tld/rpc/api" target="_blank">http://spacewalk.mydomain.tld/rpc/api</a>"</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> SATELLITE_LOGIN = "Omitted"</div>
<div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> SATELLITE_PASSWORD = "Omitted"</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> client = xmlrpclib.Server(SATELLITE_URL, verbose=0)</div>
<div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD)</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>></div>
<div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> results = <a href="http://client.packages.search.name/" target="_blank">client.packages.search.name</a>(key,'strace')</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">
>>> len(results)</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">3</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> results = <a href="http://client.packages.search.name/" target="_blank">client.packages.search.name</a>(key,'mycustompackage')</div>
<div style="color:rgb(34,34,34);font-family:arial;font-size:small">>>> len(results)</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">0</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">
>>></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small"><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">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.</div>
<div style="color:rgb(34,34,34);font-family:arial;font-size:small"><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small">Does anyone have any thoughts as to why I'm not seeing the results I should be seeing?</div>
<span class="" style="color:rgb(34,34,34);font-family:arial;font-size:small"><font color="#888888"><div><br></div><div>- Jeremy</div></font></span></div></blockquote></div></div></blockquote></div></div>