<div>Hello,</div>It's perfect. I totally understand now! Thanks a lot.<div><br><div>I thought that rhn-clone-errata parsed the config file [ChanMap] block and then launched a sync for each chanmap found.</div><div>I'll modify my script to call rhn-clone-errata for each channel now that I understand!</div>
<div><br></div><div>Would you prefer that I modify rhn-clone-errata.py to add an option to behave like I thought it was and provide you a patch? </div><div><br></div><div>Pierre</div><div><br><br><div class="gmail_quote">
2011/10/20 Speagle, Andy <span dir="ltr"><<a href="mailto:andy.speagle@wichita.edu">andy.speagle@wichita.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">> I'm trying to set up errata synchronization using the latest version of rhn-clone-errata.py available.<br>
> First, I've created file /etc/rhncloneerrata.cfg with the following content<br>
> [Spacewalk]<br>
> spw_server=localhost<br>
> spw_user=admin<br>
> spw_pass=<adminpw><br>
> [RHN]<br>
> rhn_server=<a href="http://xmlrpc.rhn.redhat.com" target="_blank">xmlrpc.rhn.redhat.com</a><br>
> rhn_user=user<br>
> rhn_pass=pass<br>
> [ChanMap]<br>
> rhel-x86_64-server-5=rhel-5-server-x64<br>
> rhel-x86_64-server-6=rhel-6-server-x64<br>
> [ChanSuffixMap]<br>
> rhel-x86_64-server-5=R5-64<br>
> rhel-x86_64-server-6=R6-64<br>
><br>
><br>
> I'm confused with the option --src-channel, which is mandatory. How is it used? I thought the ChanMap config section was enough to synchronize the RHN channels with the local channels.<br>
> Do I have to call rhn-clone-errata for each channel I want to synchronize or having all the channels in my ChanMap is enough?<br>
<br>
</div></div>Hi, Pierre.<br>
<br>
Yes... you'll need to call the script for each channel that you want to clone and use the "-c|--src-channel=BLAH" option to tell it which channel.  It uses the "ChanMap" config information to match all of the relevant data about that channel with the channel you tell it you want to sync... and then does the work.<br>

<br>
I hope that clears it up.<br>
<br>
Andy<br>
<br>
<br>
<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></div></div>