<div class="gmail_quote">2012/11/21 Paul Robert Marino <span dir="ltr"><<a href="mailto:prmarino1@gmail.com" target="_blank">prmarino1@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>By the way one thing I forgot and an other thing which is new information.<br>
1) you should always use the -r flag if you intend to include child channels right now its broken and always acts like its always on but this will be fixed shortly.<br>
2) I've gotten the multi base channel sync feature working on my development host but it introduces the problem where it cross contaminates the channels when two channels have a package with the same name so it is dangerous to use right now. The problem seems to be in the spacewalk APIs not in the script its self. I've tried several different methods to work around it but it looks like the APIs and possibly the database will need work before its viable.</p>
</blockquote><div>2. That would be cool.<br><br>So a good setup would look like this perhaps?<br><br>./<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-5 --destinationchannel=rh5-x64-base-channel -F day -r<br>
./<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-6 --destinationchannel=rh6-x64-base-channel -F day -r<br>./<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-5 --destinationchannel=centos5-x64-base-channel --rewritepackagereleasefrom el5 --rewritepackagereleaseto el5.centos -F day  -e RH  -E CENTOS5X64 -r<br>
./<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-6 --destinationchannel=centos6-x64-base-channel --rewritepackagereleasefrom el6 --rewritepackagereleaseto el6.centos -F day  -e RH  -E CENTOS6X64 -r<br>
./<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-i386-server-5 --destinationchannel=centos5-x32-base-channel --rewritepackagereleasefrom el5 --rewritepackagereleaseto el5.centos -F day -e RH  -E CENTOS5X32 -r<br>
<br>This leads to another question, how does the rh5 and rh6 channel differ from eachother?<br>Same question applies if I would have 32 and 64 bit RHEL channels.<br>Do I need -e and -E flags to differ them? For instance "-e RH -E RH6X64" and "-e RH -E RH5X64"?<br>
./<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-5 --destinationchannel=rh5-x64-base-channel -F day -e RH  -E RH5X64 -r<br>./<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-6 --destinationchannel=rh6-x64-base-channel -F day -e RH  -E RH6X64 -r<br>
<br> <br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">

<div class="gmail_quote">On Nov 20, 2012 12:59 PM, "Paul Robert Marino" <<a href="mailto:prmarino1@gmail.com" target="_blank">prmarino1@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Tue, Nov 20, 2012 at 11:16 AM, Elias Abacioglu <<a href="mailto:elias.rabi@gmail.com" target="_blank">elias.rabi@gmail.com</a>> wrote:<br>
> Hello list,<br>
><br>
> This is my very first post on this list.<br>
> I have questions regarding <a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a>.<br>
> I have both RHEL and CentOS channels in my spacewalk. I'm pretty new to all<br>
> this and wondering how I should setup the errata sync.<br>
><br>
> I have the following RHEL channels in my spacewalk:<br>
> rh6-x64-base-channel ( = rhel-x86_64-server-6)<br>
> rh6-x64-optional-channel ( = rhel-x86_64-server-optional-6)<br>
> rh5-x64-base-channel ( = rhel-x86_64-server-5)<br>
> rh5-x64-rhn_tools-channel ( = rhn-tools-rhel-x86_64-server-5)<br>
><br>
> And the following CentOS channels:<br>
> centos6-x64-base-channel (contains base and updates repos)<br>
> centos5-x64-base-channel (contains base and updates repos)<br>
> centos5-x32-base-channel (contains base and updates repos)<br>
><br>
> I want to run errata sync every night for both my RHEL and CentOS channels.<br>
> So what I've come up with so far is this:<br>
> ERRATASRCUSER=xxx<br>
> ERRATADSTUSER=xxx<br>
> ERRATASRCPASS=xxx<br>
> ERRATADSTPASS=xxx<br>
> ERRATADST=localhost<br>
> ./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-5<br>
> --destinationchannel=rh5-x64-base-channel -F day<br>
> ./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-6<br>
> --destinationchannel=rh6-x64-base-channel -F day<br>
><br>
> So for the child channel rh6-x64-optional-channel, do I use the -r flag? And<br>
> what will happen with my channel label name differences<br>
> (rh6-x64-optional-channel/rhel-x86_64-server-optional-6)?<br>
> #   -r or --recursive<br>
><br>
> When do I use these flags?<br>
> #   -e RH or --rewriteerratanamefrom RH<br>
> #   -E CENTOSX86_64 or --rewriteerratanameto CENTOSX86_64<br>
This rewrites the name of the errata so you don't get conflicting<br>
errata names essentially you cant have two erratas with the same name<br>
even if they are on different channels.<br>
for example RHBA-2012:1441 would be published in spacewalk as<br>
CENTOSX86_64BA-2012:1441<br>
<br>
> #   --rewritepackagereleasefrom el6<br>
> #   --rewritepackagereleaseto el6.centos<br>
these flags deal with alternate package names in Centos here is an<br>
example in the Redhat errata it might say the package is names<br>
at-spi-1.28.1-2.el6..x86_64.rpm but the Centos 6 name for the package<br>
is at-spi-1.28.1-2.el6.centos.x86_64.rpm this happens when Centos has<br>
added an additional patch that wasn't in the Redhat version of the<br>
rpm.<br>
These flags make it match the right package in the channel if it<br>
matches the el6 or el6.centos<br>
you should always use this for Centos channels<br>
<br>
><br>
><br>
> My best guess for the CentOS channels I should use these flags:<br>
> ./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-5<br>
> --destinationchannel=centos5-x64-base-channel --rewritepackagereleasefrom<br>
> el6 --rewritepackagereleaseto el6.centos -F day<br>
> ./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-6<br>
> --destinationchannel=centos6-x64-base-channel --rewritepackagereleasefrom<br>
> el6 --rewritepackagereleaseto el6.centos -F day<br>
> ./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-i386-server-5<br>
> --destinationchannel=centos5-x32-base-channel --rewritepackagereleasefrom<br>
> el6 --rewritepackagereleaseto el6.centos -F day<br>
><br>
this would give you better results<br>
./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-5<br>
--destinationchannel=centos5-x64-base-channel<br>
--rewritepackagereleasefrom el5 --rewritepackagereleaseto el5.centos<br>
-F day  -e RH  -E CENTOS5X64<br>
<br>
./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-6<br>
--destinationchannel=centos6-x64-base-channel<br>
--rewritepackagereleasefrom el6 --rewritepackagereleaseto el6.centos<br>
-F day  -e RH  -E CENTOS6X64<br>
<br>
./<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-i386-server-5<br>
--destinationchannel=centos5-x32-base-channel<br>
--rewritepackagereleasefrom el5 --rewritepackagereleaseto el5.centos<br>
-F day -e RH  -E CENTOS5X32<br>
<br>
> Are my assumptions/examples correct? If not, can someone correct me?<br>
you were very close<br>
<br>
one piece of advice I posted a new version of the script yesterday<br>
that fixed a few long standing bugs so make sure you have the latest<br>
version<br>
also I intend to release a new version latter this week to handle<br>
multiple target base channels which should reduce the need to rewrite<br>
the errata names.<br>
><br>
> Regards,<br>
> Elias Abacioglu<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>
</div></div><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">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>