<div dir="ltr">Hello,<div style>Here is my script:</div><div style><div>#!/bin/bash</div><div># Variables pour le script</div><div>export ERRATASRCUSER=</div><div>export ERRATADSTUSER=</div><div>export ERRATASRCPASS=</div>
<div>export ERRATADSTPASS=</div><div>/usr/local/sbin/<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> --sourcechannel=rhel-x86_64-server-5 --destinationchannel=centos-5-base-x64 --rewritepackagereleasefrom=el5 --rewritepackagereleaseto=el5.centos --rewriteerratanamefrom=RH --rewriteerratanameto=COS5X64 --startfromprevious=week -r -v<br>
</div><div><br></div><div style>I've tried to set -b option, but it fails with the same error... I can't find why.</div><div style><br></div><div style><div>Geting details for COS5X64SA-2013:0128</div><div>getting RHSA-2013:0128 from the source</div>
<div>Geting details for RHSA-2013:0128</div><div>getting details for package ricci</div><div>Can't use string ("bugzilla_url") as a HASH ref while "strict refs" in use at /usr/local/sbin/<a href="http://eva-direct-errata-sync.pl">eva-direct-errata-sync.pl</a> line 492.</div>
<div><br></div></div><div style><br></div><div style>Thanks in advance,</div><div style><br></div><div style>Pierre</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/14 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">Hello Pierre<br>
<br>
huh thats odd<br>
<br>
I know the default bugzilla url worked at one point but you seem to be<br>
right Ill put a patch up latter today when I get a chance. I'm<br>
surprised because I never ran into this error. For now setting the<br>
bugzilla URL via the command line option should work around it.<br>
<br>
This is also odd for an other reason in the current version on github<br>
that lin number has nothing to do with the bugzilla url<br>
<br>
please send me the full command line options so I can try to reproduce it<br>
NOTE please do not include your username and passwords.<br>
<div class="im"><br>
<br>
On Mon, Jan 14, 2013 at 8:20 AM, Pierre Casenove <<a href="mailto:pcasenove@gmail.com">pcasenove@gmail.com</a>> wrote:<br>
> Hello,<br>
> Using Data::dumper, I've tried to debug this...<br>
> I dump $options just before calling rewrite_package_release and then inside<br>
> this procedure:<br>
> before calling it:<br>
> $VAR1 = {<br>
>           'bugzilla_url' => undef,<br>
>           'verbose' => undef,<br>
</div>>           'dst_passwd' => '',<br>
<div class="im">>           'rewrite_package_release_from' => 'el5',<br>
>           'rewrite_package_release_to' => 'el5.centos',<br>
>           'src_channel' => 'rhel-x86_64-server-5',<br>
>           'dst_host' => 'localhost',<br>
>           'batch_config' => undef,<br>
>           'help' => undef,<br>
>           'start_date' => '2013-1-07 13:11:17',<br>
>           'dryrun' => undef,<br>
</div>>           'src_passwd' => '',<br>
<div class="HOEnZb"><div class="h5">>           'src_host' => '<a href="http://rhn.redhat.com" target="_blank">rhn.redhat.com</a>',<br>
>           'dst_channel' => 'centos-5-base-x64',<br>
>           'start_from_previous' => 'week',<br>
>           'recursive' => 1,<br>
>           'dst_user' => 'erratasync',<br>
>           'rewrite_errata_name_from' => 'RH',<br>
>           'end_date' => undef,<br>
>           'write_config' => undef,<br>
>           'src_user' => 'rhn-mreposync',<br>
>           'rewrite_errata_name_to' => 'COS5X64'<br>
>         };<br>
> Inside the procedure:<br>
> $VAR1 = 'bugzilla_url';<br>
><br>
> I'm not a perl expert, but it seems that the array of option is not<br>
> correctly passed...<br>
><br>
> By the way, in the current code, I think that there is a bug:<br>
><br>
> unless($options->{'bugzilla_url'}){<br>
>       print_verbose(%{$options},"No bugzilla url specified setting to the default<br>
> \"<a href="https://bugzilla.redhat.com/\" target="_blank">https://bugzilla.redhat.com/\</a>"\n");<br>
>     }<br>
><br>
> The bugzilla_url is never set to the default!<br>
><br>
> Pierre<br>
><br>
><br>
><br>
> 2013/1/14 Pierre Casenove <<a href="mailto:pcasenove@gmail.com">pcasenove@gmail.com</a>><br>
>><br>
>> Hello,<br>
>> I still have one problem.<br>
>> I want to use options --rewritepackagereleasefrom=el5<br>
>> --rewritepackagereleaseto=el5.centos for centos errata sync.<br>
>> When I try to sync errata RHSA-2013:0128, I get the following error:<br>
>><br>
>> checking if RHSA-2013:0128 exists on the destination host<br>
>> Geting details for COS5X64SA-2013:0128<br>
>> getting RHSA-2013:0128 from the source<br>
>> Geting details for RHSA-2013:0128<br>
>> getting details for package ricci<br>
>> Can't use string ("bugzilla_url") as a HASH ref while "strict refs" in use<br>
>> at /usr/local/sbin/<a href="http://eva-direct-errata-sync.pl" target="_blank">eva-direct-errata-sync.pl</a> line 492.<br>
>><br>
>> Thanks in advance,<br>
>><br>
>> Pierre<br>
>><br>
>><br>
>> 2013/1/10 Paul Robert Marino <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>><br>
>>><br>
>>> On Thu, Jan 10, 2013 at 1:48 AM, Pierre Casenove <<a href="mailto:pcasenove@gmail.com">pcasenove@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hello Paul.<br>
>>> > First, thanks a lot for this hint, now it works... but with a little<br>
>>> > twist:<br>
>>> > as I'm setting environment variables, I use proxy to connect to RHN AND<br>
>>> > to<br>
>>> > my local spacewalk server...<br>
>>> > How could I unset PROXY variables for Spacewalk, and not for RHN?<br>
>>> I haven't looked into it yet but I think this is a limitation LWP<br>
>>> inherits from one of it many dependencies. It will take time for me to<br>
>>> investigate it there is a workaround but your solution using HTTP for<br>
>>> the local connection and HTTPS to rhn may be the only practical<br>
>>> workaround right now.<br>
>>> > By the way, great script, it works like a charm (except this proxy<br>
>>> > setting!)<br>
>>> ><br>
>>> > I still have three questions:<br>
>>> > - For Centos, I have a base channel named Centos 6 Base and a child<br>
>>> > channel<br>
>>> > for the updates. Can your script find packages in both?<br>
>>> yes it can<br>
>>> > - For RHEL channels: Do i have to call the script twice to get erratas<br>
>>> > from<br>
>>> > RHEL 6 Server channels and RHEL 6 Optionnal channel, or does your<br>
>>> > script<br>
>>> > automatically find everything when calling it and specifying the rhel 6<br>
>>> > server channel?<br>
>>> No it will scan all channels on the source you have access to under<br>
>>> the base channel<br>
>>><br>
>>> > - I'm planning to call the script once a day, with the<br>
>>> > "startfromprevious"<br>
>>> > option. Imagine the following case, which happens quite frequently:<br>
>>> > RedHat<br>
>>> > publishes a RHSA with the associated packages on day 1. The next night,<br>
>>> > I'm<br>
>>> > going the download the package and create the errata for RHEL. But<br>
>>> > from<br>
>>> > centos, it happens that the packages are not yet available (they are<br>
>>> > published a few days after). Your script will skip the errata creation<br>
>>> > for<br>
>>> > centos... but even when the package will be available, the errata will<br>
>>> > never<br>
>>> > be re-created, as it starts with the last launch date. How can I<br>
>>> > address<br>
>>> > this?<br>
>>> I usually use startfromprevious with month with scientific linux and<br>
>>> year with Centos because it doesn't take that much longer and resolves<br>
>>> this for both distros<br>
>>><br>
>>> ><br>
>>> > Thanks in advance,<br>
>>> ><br>
>>> > Pierre<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > 2013/1/4 Paul Robert Marino <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>><br>
>>> >><br>
>>> >> perl-Crypt-SSLeay<br>
>>> ><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>
>>><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>
>><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>
<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>
</div></div></blockquote></div><br></div>