<div dir="ltr">Hello,<div style>Using Data::dumper, I've tried to debug this...</div><div style>I dump $options just before calling <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre">rewrite_package_release </span>and then inside this procedure:</div>
<div style>before calling it:</div><div>$VAR1 = {</div><div>          'bugzilla_url' => undef,</div><div>          'verbose' => undef,</div><div>          'dst_passwd' => 'iJEFgZuw9OyQzh1hqvSc',</div>
<div>          'rewrite_package_release_from' => 'el5',</div><div>          'rewrite_package_release_to' => 'el5.centos',</div><div>          'src_channel' => 'rhel-x86_64-server-5',</div>
<div>          'dst_host' => 'localhost',</div><div>          'batch_config' => undef,</div><div>          'help' => undef,</div><div>          'start_date' => '2013-1-07 13:11:17',</div>
<div>          'dryrun' => undef,</div><div>          'src_passwd' => 'Y0JsFAv1cW63DWv5diKZ',</div><div>          'src_host' => '<a href="http://rhn.redhat.com">rhn.redhat.com</a>',</div>
<div>          'dst_channel' => 'centos-5-base-x64',</div><div>          'start_from_previous' => 'week',</div><div>          'recursive' => 1,</div><div>          'dst_user' => 'erratasync',</div>
<div>          'rewrite_errata_name_from' => 'RH',</div><div>          'end_date' => undef,</div><div>          'write_config' => undef,</div><div>          'src_user' => 'rhn-mreposync',</div>
<div>          'rewrite_errata_name_to' => 'COS5X64'</div><div>        };</div><div style>Inside the procedure: </div><div style>$VAR1 = 'bugzilla_url'; </div><div style><br></div><div style>I'm not a perl expert, but it seems that the array of option is not correctly passed...</div>
<div style><br></div><div style>By the way, in the current code, I think that there is a bug:</div><div style><pre style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;color:rgb(51,51,51);line-height:16px">
<div class="" id="LC818" style="margin:0px;padding:0px 0px 0px 10px;border:0px"><span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">unless</span><span class="" style="margin:0px;padding:0px;border:0px">(</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(0,128,128)">$options</span><span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">-></span><span class="" style="margin:0px;padding:0px;border:0px">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(221,17,68)">'bugzilla_url'</span><span class="" style="margin:0px;padding:0px;border:0px">}){</span></div>
<div class="" id="LC819" style="margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="" style="margin:0px;padding:0px;border:0px">print_verbose</span><span class="" style="margin:0px;padding:0px;border:0px">(</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(0,128,128)">%</span><span class="" style="margin:0px;padding:0px;border:0px">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(0,128,128)">$options</span><span class="" style="margin:0px;padding:0px;border:0px">},</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(221,17,68)">"No bugzilla url specified setting to the default \"<a href="https://bugzilla.redhat.com/\">https://bugzilla.redhat.com/\</a>"\n"</span><span class="" style="margin:0px;padding:0px;border:0px">);</span></div>
<div class="" id="LC820" style="margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="" style="margin:0px;padding:0px;border:0px">}</span></div></pre></div><div style>The bugzilla_url is never set to the default!</div>
<div style><br></div><div style>Pierre</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/14 Pierre Casenove <span dir="ltr"><<a href="mailto:pcasenove@gmail.com" target="_blank">pcasenove@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I still have one problem.</div><div>I want to use options --rewritepackagereleasefrom=el5 --rewritepackagereleaseto=el5.centos for centos errata sync.</div>
<div>When I try to sync errata RHSA-2013:0128, I get the following error:</div>
<div><br></div><div><div>checking if RHSA-2013:0128 exists on the destination host</div><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" target="_blank">eva-direct-errata-sync.pl</a> line 492.</div>

<div><br></div><div>Thanks in advance,</div><div><br></div><div>Pierre</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/10 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"><div>On Thu, Jan 10, 2013 at 1:48 AM, Pierre Casenove <<a href="mailto:pcasenove@gmail.com" target="_blank">pcasenove@gmail.com</a>> wrote:<br>


> Hello Paul.<br>
> First, thanks a lot for this hint, now it works... but with a little twist:<br>
> as I'm setting environment variables, I use proxy to connect to RHN AND to<br>
> my local spacewalk server...<br>
> How could I unset PROXY variables for Spacewalk, and not for RHN?<br>
</div>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>
<div>> By the way, great script, it works like a charm (except this proxy setting!)<br>
><br>
> I still have three questions:<br>
> - For Centos, I have a base channel named Centos 6 Base and a child channel<br>
> for the updates. Can your script find packages in both?<br>
</div>yes it can<br>
<div>> - For RHEL channels: Do i have to call the script twice to get erratas from<br>
> RHEL 6 Server channels and RHEL 6 Optionnal channel, or does your script<br>
</div>> 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>
<div><br>
> - I'm planning to call the script once a day, with the "startfromprevious"<br>
> option. Imagine the following case, which happens quite frequently: RedHat<br>
> publishes a RHSA with the associated packages on day 1. The next night, I'm<br>
> going the download the package and create the errata for RHEL. But  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 for<br>
> centos... but even when the package will be available, the errata will never<br>
> be re-created, as it starts with the last launch date. How can I address<br>
> this?<br>
</div>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>
<div><br>
><br>
> Thanks in advance,<br>
><br>
> Pierre<br>
><br>
><br>
><br>
> 2013/1/4 Paul Robert Marino <<a href="mailto:prmarino1@gmail.com" target="_blank">prmarino1@gmail.com</a>><br>
>><br>
>> perl-Crypt-SSLeay<br>
><br>
><br>
><br>
><br>
</div><div><div>> _______________________________________________<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>
<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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>