[Spacewalk-list] eva-direct-errata-sync.pl -- easier than rhn-clone-errata.py

Paul Robert Marino prmarino1 at gmail.com
Fri Aug 17 18:09:06 UTC 2012


By the way ill update the documentation when I'm ready to upload the
next version of the script with multi-base channel support.

also for any one else interested in using it for other distributions
like CentOS or Scientific Linux
here is an example for Scientific Linux

eva-direct-errata-sync.pl --sourceuser=username
--destinationuser=username -r -c "rhel-x86_64-server-6" -C
"sci-linux-6_2" -e RH -E SL6-64 -F week

This will change RHSA to SL6-64SA

and for CentOS channels the

 --rewritepackagereleasefrom el6
and
 --rewritepackagereleaseto el6.centos
options are very important





On Fri, Aug 17, 2012 at 1:48 PM, Paul Robert Marino <prmarino1 at gmail.com> wrote:
> go into Errata ->All and you should see them on the left side of the page
> when you click on Errata it defaults to the Relevant view which is
> only erratas that apply to your registered systems
>
>
> On Fri, Aug 17, 2012 at 8:56 AM,  <fnwsa at yahoo.com> wrote:
>> Thank  you for the explanation, especially for (3).
>>
>> eva-direct-errata-sync.pl was running well in getting channel
>> rhel-i386-server-5 and rhel-i386-as-4 that I got issues when using
>> rhn-clone-errata.py. It took about 2 to 3 hours as you said.
>>
>> One question: If there is no rhel 5 i386 system added to Spacewalk, do the
>> errata for this channel show in Spacewalk's Errata? I don't see them.
>>
>> Here is what I got from "perldoc eva-direct-errata-sync.pl": "-s
>> satellite.example.org or --sourceserver satellite.example.org. The hostname
>> of the errata source server. This option over rides the ERRATASRC
>> environment variable. If neither this option or the environment variable are
>> specified it defaults to access.redhat.com." So if the default source server
>> is 'rhn.redhat.com', you may update the document.
>>
>> Great program. Thank you again for your contributions!
>>
>> nz
>>
>> ________________________________
>> From: Paul Robert Marino <prmarino1 at gmail.com>
>> To: fnwsa at yahoo.com; spacewalk-list at redhat.com
>> Sent: Thursday, August 16, 2012 1:04:34 PM
>> Subject: Re: [Spacewalk-list] eva-direct-errata-sync.pl -- easier than
>> rhn-clone-errata.py
>>
>> I have 4 comments on how you're running it
>> 1) The default for --sourceserver is rhn.redhat.com so you don't need
>> to specify it unless you are syncing from an other spacewalk server.
>> 2) The --verbose flag is for debugging only and its output is really
>> not meant for normal use and may be disturbing if you don't understand
>> it
>> 3) After the initial sync adding a the --startfromprevious option
>> really does speed it up
>>
>> That being said depending on how your database is tuned and how fast
>> your box is it shouldn't take more than two or three hours for the
>> initial sync to complete.
>>
>>
>> On Thu, Aug 16, 2012 at 10:16 AM,  <fnwsa at yahoo.com> wrote:
>>> Thank Robert and Paul for your instructions.
>>>
>>> The eva-direct-errata-sync.pl is running now (don't know how long it will
>>> take). See these:
>>>
>>> # perl eva-direct-errata-sync.pl
>>> --sourceuser=rhnusername \
>>> --destinationuser=spacewalkusername \
>>> --sourcepassword=rhnpassword \
>>> --destinationpassword=spacewalkpassword \
>>> --sourcechannel=rhel-i386-server-5 \
>>> --destinationchannel=spacewalk_channel_rhel_5_i386 \
>>> --sourceserver=access.redhat.com \
>>> --destinationserver=localhost \
>>> --recursive \
>>> --verbose
>>> No bugzilla url specified setting to the default
>>> "https://bugzilla.redhat.com/"
>>> connecting to "https://access.redhat.com/rpc/api/" with username
>>> "rhnusername"
>>> 404 Not Found
>>>
>>> Change access.redhat.com to rhn.redhat.com in sourceserver.
>>>
>>> # perl eva-direct-errata-sync.pl
>>> --sourceuser=rhnusername \
>>> --destinationuser=spacewalkusername
>>> --sourcepassword=rhnpassword \
>>> --destinationpassword=spacewalkpassword \
>>> --sourcechannel=rhel-i386-server-5 \
>>> --destinationchannel=spacewalk_channel_rhel_5_i386 \
>>> --sourceserver=rhn.redhat.com \
>>> --destinationserver=localhost \
>>> --recursive \
>>> --verbose
>>> running......
>>>
>>> nz
>>>
>>> ________________________________
>>> From: "Boyd, Robert" <Robert.Boyd at peoplefluent.com>
>>> To: "fnwsa at yahoo.com" <fnwsa at yahoo.com>
>>> Sent: Wednesday, August 15, 2012 5:09:44 PM
>>> Subject: RE: [Spacewalk-list] rhn-clone-errata.py running issue
>>>
>>> To read the documentation  do this> Perldoc <scriptname>
>>>
>>> Here is a sample invocation:
>>>
>>> less /usr/local/bin/spacewalk-errata-sync
>>> source ~/.bash_profile
>>> echo `date` Syncing Spacewalk Errata
>>> #export FROMDATE=-F week
>>> export FROMDATE="-D `/usr/local/bin/errata_end_date`"
>>> export SYNCOPTIONS="--verbose --recursive ${FROMDATE}"
>>> # ERRATA[SRC|DST][USER|PASS] are defined in .bash_profile
>>> #echo syncing scientific linux
>>> #time /path/to/scripts/eva-direct-errata-sync.pl --sourceuser=username
>>> --destinationuser=username -r -c "rhel-x86_64-server-6" -C "sci-linux-6_2"
>>> -e RH -E SL6 -F week
>>> echo "Errata Sync Options: ${SYNCOPTIONS}"
>>> echo `date` syncing RHEL 6
>>> time /usr/local/bin/eva-direct-errata-sync.pl
>>> --sourcechannel=rhel-x86_64-server-6
>>> --destinationchannel=rhel-x86_64-server-6 ${SYNCOPTIONS}
>>> echo `date` syncing RHEL 5 x86_64
>>> time /usr/local/bin/eva-direct-errata-sync.pl
>>> --sourcechannel=rhel-x86_64-server-5
>>> --destinationchannel=rhel-x86_64-server-5 ${SYNCOPTIONS}
>>> echo `date` syncing RHEL 4 x86_64
>>> time /usr/local/bin/eva-direct-errata-sync.pl
>>> --sourcechannel=rhel-x86_64-es-4 --destinationchannel=rhel-x86_64-server-4
>>> ${SYNCOPTIONS}
>>> echo `date` syncing RHEL 5 i386
>>> time /usr/local/bin/eva-direct-errata-sync.pl
>>> --sourcechannel=rhel-i386-server-5 --destinationchannel=rhel-i386-server-5
>>> ${SYNCOPTIONS}
>>> echo `date` syncing RHEL 4 i386
>>> time /usr/local/bin/eva-direct-errata-sync.pl
>>> --sourcechannel=rhel-i386-es-4
>>> --destinationchannel=rhel-i386-server-4 ${SYNCOPTIONS}
>>>
>>> From: spacewalk-list-bounces at redhat.com
>>> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of fnwsa at yahoo.com
>>> Sent: Wednesday, August 15, 2012 4:25 PM
>>> To: spacewalk-list at redhat.com
>>> Subject: Re: [Spacewalk-list] rhn-clone-errata.py running issue
>>>
>>> Hi Paul,
>>>
>>> I've just downloaded your script eva-direct-errata-sync.pl and trying to
>>> use
>>> it. Is there a README or HowTo document that users can use? Thanks a lot!
>>>
>>> nz
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>>




More information about the Spacewalk-list mailing list