Red Hat Bugzilla – Bug 805925
pulp changes needed to support syncing RHEL5 CDN-backed repositories
Last modified: 2014-09-18 11:32:56 EDT
This bug is intended to track potential pulp code changes needed to accommodate the RHEL5 CDN layout.
On Sat, 2012-03-24 at 17:39 -0400, James Laska wrote:
> > Few suggestions,
> > * double check versions of pulp/grinder rpms running,
> See previous mail for katello and pulp versions. "All tests are performed using pulp-1.0.0-7.el6 and katello-0.1.306-1.el6.". I didn't check the grinder version, but I assume it's on there considering -7 pulp has it as a required.
> > * make sure you're pointing to the correct promoted urls.
> Good point. I believe they are, since the installs are able to
> download the vmlinuz/initrd.img/stage2.img just fine ... It's only the
> repodata discovery that fails.
> Additionally, the rhel6 installs work fine. I stuffed the anaconda
> logs from the failed install attempts. I'll confirm they are using the
> promoted urls.
Using the pulp promoted RHEL-5 x86_64 installation repository, I have attempted both automated (via conductor/oz/imagefactory) and manual installations. Both automated and manual installs fail when attempting to install packages and parse repodata. Both installs boot with the correct installation URL.
The ks.cfg used in the automated case is fairly simple (http://pastebin.test.redhat.com/82901), and has no installation or repo definitions to cause problems.
The sha256sums of the promoted pulp kernel, initrd and anaconda stage2.img match that of RHEL-5-U8.
> d320ded10bc13b48337659116551201360ccae7fe5ead2822bfa3a7bdd29ec3b /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/images/pxeboot/vmlinuz
> dae1ef3781f5e158699fb837512f907aac2fccb5b84b1568e0ae65c88b0c1693 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/images/pxeboot/initrd.img
> 1758d36993052a3f04b155cc75da8443f13ea955a3442175c1cf423f62a8578c /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/images/stage2.img
> d320ded10bc13b48337659116551201360ccae7fe5ead2822bfa3a7bdd29ec3b redhat/Dev/content/dist/rhel/server/5/5Server/x86_64/os/images/pxeboot/vmlinuz
> dae1ef3781f5e158699fb837512f907aac2fccb5b84b1568e0ae65c88b0c1693 redhat/Dev/content/dist/rhel/server/5/5Server/x86_64/os/images/pxeboot/initrd.img
> 1758d36993052a3f04b155cc75da8443f13ea955a3442175c1cf423f62a8578c redhat/Dev/content/dist/rhel/server/5/5Server/x86_64/os/images/stage2.img
Looking at the httpd access_log on my katello/pulp server, I see failed attempts to access the repomd.xml
> 10.16.96.70 - - [26/Mar/2012:08:36:51 -0400] "GET /pulp/ks/redhat/Dev/content/dist/rhel/server/5/5Server/x86_64/os///disc1/.discinfo HTTP/1.1" 404 380 "-" "urlgrabber/3.1.0"
> 10.16.96.70 - - [26/Mar/2012:08:36:54 -0400] "GET /pulp/ks/redhat/Dev/content/dist/rhel/server/5/5Server/x86_64/os//Server/repodata/repomd.xml HTTP/1.1" 404 390 "-" "urlgrabber/3.1.0 yum/3.2.22"
> 10.11.231.74 - - [26/Mar/2012:08:40:24 -0400] "GET /pulp/ks/redhat/Dev/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/repomd.xml HTTP/1.1" 404 389 "-" "urlgrabber/3.1.0 yum/3.2.22"
It seems the problem is that the installer is expecting to see "os/Server/repodata/repomd.xml" ... but no such file is found. This file is *not* present in the 'Library' or the promoted environment 'Dev'. It *is* present on the CDN (http://cdn.rcm-qa.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/repomd.xml).
Manually downloading that file into the pulp directory solves the problem and allows manual and automation installations to proceed.
This suggests pulp is not downloading the required installation file.
I'm moving this bug back to ASSIGNED. If you've prefer tracking any subsequent change, or if my analysis is incorrect, I'm happy to adjust the bz tracking as needed.
This is not a pulp iaaue. The treeinfo is missing repomd.xml reference.moving back to modified
This was resolved in:
should have been more clear with my previous comment, this should get retested with the latest Beta6 puddle and upstream changes in the CDN to see if it is an issue.
# ls -ltd /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/*
drwxr-xr-x. 2 apache apache 4096 Apr 17 19:17 /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/repodata
-rw-r--r--. 1 apache apache 9987985 Apr 17 19:17 /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/updateinfo.xml
drwxr-xr-x. 3 apache apache 4096 Apr 17 18:12 /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/Server
drwxr-xr-x. 3 apache apache 4096 Apr 17 18:12 /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/images
lrwxrwxrwx. 1 apache apache 106 Apr 17 18:12 /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/treeinfo -> ../../../../../../../../../../../distributions/ks-Red Hat Enterprise Linux Server-None-5.8-x86_64/treeinfo
drwxr-xr-x. 2 apache apache 4096 Apr 17 18:12 /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/drpms
drwxr-xr-x. 2 apache apache 1253376 Apr 17 18:11 /var/www/pub/ks/Raleigh/Dev1/content/dist/rhel/server/5/5Server/x86_64/os/Packages
Just some extra data points ...
I have successfully synced RHEL 5.7, 5.8 and 5Server (i386 and x86_64) from cdn.rcm-qa.redhat.com using pulp-1.0.4-1.el6.noarch
I have not yet tested against cdn.redhat.com. I'm told that some of the most recent CDN layout changes (5.7 i386 specifically) are not yet on cdn.redhat.com.
Comment #9 was syncing 5Server using cdn.redhat.com... should I close this?
(In reply to comment #11)
> Comment #9 was syncing 5Server using cdn.redhat.com... should I close this?
For completeness, if we are able to successfully build and push a CloudForms Cloud Engine image using your cdn.redhat.com repository, that will touch all the pain points we've encountered with RHEL5 CDN URLs
Downloaded template and imported into CF system. Then built image and launched.