So I'm trying this script and I can't get logged into RHN even though my username and password are correct.<div><br></div><div>My error is </div><div>Fault returned from XML RPC Server, fault code -2: unhandled internal exception: error.invalid_login</div>

<div><br></div><div>Tarun<br><br><div class="gmail_quote">On Mon, Oct 18, 2010 at 1:30 PM, Evan Frey <span dir="ltr"><<a href="mailto:efrey2@optonline.net">efrey2@optonline.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

This script is another attempt at pulling RHN errata into spacewalk.  I have used the other out there and found that they didn't do what I wanted.  My hit list was as follows:<br>
<br>
 - From <a href="http://lists.centos.org/pipermail/centos-announce" target="_blank">http://lists.centos.org/pipermail/centos-announce</a> pull the monthly digest down to pull out all of the advisory numbers<br>
 - Log into RHN and use the xmlrpc api to pull the details of each erratum<br>
 - Push the erratum into spacewalk using the xmlrpc api.  This should be pushed dynamically rather then needing a configuration file<br>
<br>
<br>
The items that I feel are still outstanding and plan to work on:<br>
<br>
 - Currently the script publishs the errata to all channels.  The next iteration should publish only to channels where the rpm file exists.<br>
 - The script does not check if erratum is already published, it just makes the attempt to publish it again (it will silently fail if the erratum is already there uploaded).  Not sure what the speed gain will be checking for errata on the local spacewalk server as opposed to just trying to publish, if it is negligible this will not be addressed.<br>


 - Keywords are currently just the list of packages.  This will change to be the keywords from RHN.<br>
 - Multithread the app.  Not sure I really care about this, but someone brought it up so I may look into it.<br>
<br>
<br>
The project is hosted on sourceforge at <a href="http://rhn2spacewalk.sourceforge.net/" target="_blank">http://rhn2spacewalk.sourceforge.net/</a><br>
<br>
It requires:<br>
<br>
perl-Frontier-RPC<br>
perl-List-MoreUtils<br>
<br>
Additionally I used perl-5.8.8-32 so it had the following built in:<br>
<br>
Getopt::Long<br>
Switch<br>
<br>
<br>
Let me know what you think<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</blockquote></div><br></div>