Hi Jiri,

the url is wrong.


I got it working by:


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


Cheers,


Alex


________________________________
From: [email protected] <[email protected]> on behalf of 
Jiri Tyr <[email protected]>
Sent: Friday, July 8, 2016 07:05
To: pulp-list
Subject: [Pulp-list] Can not sync repo with redirected RPMs

Hello,

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:

$ pulp-admin rpm repo create --repo-id=jenkins 
--feed=http://pkg.jenkins.io/redhat

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:

# Check if repomd.xml exists (yes, it exists)
$ curl -I http://pkg.jenkins.io/redhat/repodata/repomd.xml
HTTP/1.1 200 OK
Date: Thu, 07 Jul 2016 21:56:41 GMT
Server: Apache/2.4.7 (Ubuntu)
Last-Modified: Wed, 06 Jul 2016 03:17:37 GMT
ETag: "bb0-536ef02eb92c1"
Accept-Ranges: bytes
Content-Length: 2992
Content-Type: application/xml

# Check where the RPM redirects (http://pkg.jenkins.io -> 
http://mirrors.jenkins.io)
$ curl -I http://pkg.jenkins.io/redhat/jenkins-2.9-1.1.src.rpm
HTTP/1.1 302 Found
Date: Thu, 07 Jul 2016 21:57:12 GMT
Server: Apache/2.4.7 (Ubuntu)
Location: http://mirrors.jenkins.io/redhat/jenkins-2.9-1.1.src.rpm
Content-Type: text/html; charset=iso-8859-1

# Check if the repomd.xml exists in the new location (no -> can not make the 
new location as the new feed)
$ curl -I http://mirrors.jenkins.io/redhat/repodata/repomd.xml
HTTP/1.1 404 Not Found
Date: Thu, 07 Jul 2016 21:58:06 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Type: text/html; charset=iso-8859-1

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?

Best regards,
Jiri
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to