<div dir="ltr">Hello Tony<div><br></div><div>Just to clarify, you have one subscription of RHEL and would like to sync RHEL packages to your SW, that's correct ?!</div><div><br></div><div><br></div><div>Take Care</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div>______________<br>Atenciosamente<br>Waldirio<br>msn: <a href="mailto:waldirio@gmail.com" target="_blank">waldirio@gmail.com</a><br>Skype: waldirio<br>Site: <a href="http://www.waldirio.com.br" target="_blank">www.waldirio.com.br</a><br>Blog: <a href="http://blog.waldirio.com.br" target="_blank">blog.waldirio.com.br</a></div>
<div>LinkedIn: <a href="http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646" target="_blank">http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646</a><br>PGP: <a href="http://www.waldirio.com.br/public.html" target="_blank">www.waldirio.com.br/public.html</a></div></div></div>
<br><div class="gmail_quote">On Fri, Mar 13, 2015 at 12:41 PM, Tony Dufour <span dir="ltr"><<a href="mailto:Tony.Dufour@gemalto.com" target="_blank">Tony.Dufour@gemalto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="FR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hello folks,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have an issue while setting up a Spacewalk channel based on a Red Hat Network repository with mutual auth.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span lang="EN-US">I have valid Red Hat subscriptions in my Red Hat account<u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span lang="EN-US">I have registered my Spacewalk 2.2 server, so I was able to export its entitlement certificate<u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span lang="EN-US">I imported the entitlement certificate in Spacewalk (System > Kickstart > GPG and SSL Keys)<u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span lang="EN-US">I also imported the RHNS CA Certificate in Spacewalk<u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span lang="EN-US">I created a repository in Spacewalk with the following URL :
<a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/</a><u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span lang="EN-US">I configured the repository to use my RHNS CA Cert and Entitlement cert<u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span lang="EN-US">I created a channel and linked it to this repository<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Now I try to perform my first “repo-sync” but it fails :<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">[root@host reposync]# /usr/bin/spacewalk-repo-sync -c test_rhn-6-x86_64<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">#### Channel label: test_rhn-6-x86_64 ####<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Repo URL: <a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: test_rhn-6-x86_64. Please verify its path and try again<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Sync completed.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Total time: 0:00:00<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The repo-sync log file doesn’t help since it only log this standard output.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I guess that my certificates works since I’m able to reach and authenticate on <a href="http://cdn.redhat.com" target="_blank">cdn.redhat.com</a> using wget command :<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">[root@host ~]# wget <a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/</a> --certificate=/tmp/host.pem --ca-certificate=/usr/share/rhn/RHNS-CA-CERT --no-check-certificate<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">--2015-03-13 16:38:51--  <a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Resolving proxy.domain.com... 10.54.4.42<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Connecting to <a href="http://proxy.domain.com" target="_blank">proxy.domain.com</a> |10.54.4.42|:9091... connected.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">WARNING: cannot verify <a href="http://cdn.redhat.com" target="_blank">cdn.redhat.com</a>’s certificate, issued by “/C=US/ST=North Carolina/O=Red Hat, Inc./OU=Red Hat Network/CN=Red Hat Entitlement Operations Authority/emailAddress=<a href="mailto:ca-support@redhat.com" target="_blank">ca-support@redhat.com</a>”:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">  Self-signed certificate encountered.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Proxy request sent, awaiting response... 200 OK<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Length: 767 [text/html]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Saving to: “index.html”<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">100%[===========================================================================================================================>] 767         --.-K/s   in 0s<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">2015-03-13 16:38:51 (16.6 MB/s) - “index.html” saved [767/767]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Anyone can help resolving this repo-sync problem ?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks anyone for your ideas or suggestions.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Tony<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<hr>
<span lang="EN-US" style="font-style:italic;font-size:10.0pt;font-family:"Arial","sans-serif";color:maroon">This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized
 use or disclosure, either whole or partial, is prohibited.<br>
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.<br>
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.</span>
</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></div>