<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Jiri,</p>
<p><br>
</p>
<p>the url is wrong.</p>
<p><br>
</p>
<p>I got it working by:</p>
<p><br>
</p>
<p></p>
<div>pulp-admin rpm repo create --repo-id=JENKINS --feed=http://pkg.jenkins-ci.org/redhat --gpg-key=/etc/pki/rpm-gpg/jenkins-ci.org.key --relative-url=JENKINS<br>
</div>
<br>
<p>Cheers,</p>
<p><br>
</p>
<p>Alex<br>
</p>
<p></p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> pulp-list-bounces@redhat.com <pulp-list-bounces@redhat.com> on behalf of Jiri Tyr <jiri.tyr@gmail.com><br>
<b>Sent:</b> Friday, July 8, 2016 07:05<br>
<b>To:</b> pulp-list<br>
<b>Subject:</b> [Pulp-list] Can not sync repo with redirected RPMs</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>I'm trying to sync Jenkins YUM repo but it gets stuck on the repo content download forever. The repo was created with this command:</div>
<div><br>
</div>
$ pulp-admin rpm repo create --repo-id=jenkins --feed=<a id="LPlnk892244" href="http://pkg.jenkins.io/redhat">http://pkg.jenkins.io/redhat</a><br>
<div><br>
</div>
<div>When I tried to investigate what could possibly be wrong, I have found out that the RPMs referred by the primary repomd file is actually redirected to another URL on which the repodata is not available:</div>
<div><br>
</div>
<div># Check if repomd.xml exists (yes, it exists)</div>
<div>
<div>$ curl -I <a href="http://pkg.jenkins.io/redhat/repodata/repomd.xml">http://pkg.jenkins.io/redhat/repodata/repomd.xml</a></div>
<div>HTTP/1.1 200 OK</div>
<div>Date: Thu, 07 Jul 2016 21:56:41 GMT</div>
<div>Server: Apache/2.4.7 (Ubuntu)</div>
<div>Last-Modified: Wed, 06 Jul 2016 03:17:37 GMT</div>
<div>ETag: "bb0-536ef02eb92c1"</div>
<div>Accept-Ranges: bytes</div>
<div>Content-Length: 2992</div>
<div>Content-Type: application/xml</div>
</div>
<div><br>
</div>
<div># Check where the RPM redirects (<a href="http://pkg.jenkins.io">http://pkg.jenkins.io</a> ->
<a href="http://mirrors.jenkins.io">http://mirrors.jenkins.io</a>)<br>
</div>
<div>
<div>$ curl -I <a href="http://pkg.jenkins.io/redhat/jenkins-2.9-1.1.src.rpm">http://pkg.jenkins.io/redhat/jenkins-2.9-1.1.src.rpm</a></div>
<div>HTTP/1.1 302 Found</div>
<div>Date: Thu, 07 Jul 2016 21:57:12 GMT</div>
<div>Server: Apache/2.4.7 (Ubuntu)</div>
<div>Location: <a href="http://mirrors.jenkins.io/redhat/jenkins-2.9-1.1.src.rpm">
http://mirrors.jenkins.io/redhat/jenkins-2.9-1.1.src.rpm</a></div>
<div>Content-Type: text/html; charset=iso-8859-1</div>
</div>
<div><br>
</div>
<div># Check if the repomd.xml exists in the new location (no -> can not make the new location as the new feed)</div>
<div>
<div>$ curl -I <a href="http://mirrors.jenkins.io/redhat/repodata/repomd.xml">http://mirrors.jenkins.io/redhat/repodata/repomd.xml</a></div>
<div>HTTP/1.1 404 Not Found</div>
<div>Date: Thu, 07 Jul 2016 21:58:06 GMT</div>
<div>Server: Apache/2.4.7 (Ubuntu)</div>
<div>Content-Type: text/html; charset=iso-8859-1</div>
</div>
<div><br>
</div>
<div>Please could somebody confirm that there is actually a problem with such RPM redirection during the repo sync? If that's true, could it be fixed?</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Jiri</div>
</div>
</div>
</div>
</div>
</body>
</html>