Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 803944

Summary: RHEL5 synced pulp content uninstallable
Product: Red Hat Satellite Reporter: James Laska <jlaska>
Component: InfrastructureAssignee: Dennis Gregorovic <dgregor>
Status: CLOSED CURRENTRELEASE QA Contact: Og Maciel <omaciel>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: bunzon, cpelland, dgregor, gkhachik, hbrock, jgreguske, jturner, mmccune, omaciel, pkilambi
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 805925 (view as bug list) Environment:
Last Closed: 2012-08-22 18:31:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 805925    
Attachments:
Description Flags
katello-debug-20120316044040.tar.gz none

Description James Laska 2012-03-16 03:54:58 UTC
Created attachment 570484 [details]
katello-debug-20120316044040.tar.gz

Description of problem:

In CloudForms, when exporting a RHEL5 system template, any image build attempts fail due to the RHEL5 installation directory layout created by pulp.

The CloudForms image builds timeout due to referencing a URL that doesn't exist on the pulp server:

> 03:22:18 INFO    : package paths is {'base': ['http://flatline-katello.usersys.redhat.com/pulp/ks/redhat/Stage/content/dist/rhel/server/5/5Server/x86_64/os//Server']}
> 03:22:18 ERROR   : reading package metadata: Cannot retrieve repository metadata (repomd.xml) for repository: anaconda-base-201202021136.x86_64. Please verify its path and try again

Note the 'base' installation URL above.  This is a typical installation URL for RHEL5 installations.  Unfortunately, pulp does not seem to have the 'Server/' directory available on disk (only the 'Packages/' directory).

Version-Release number of selected component (if applicable):
 * candlepin-0.5.24-1.el6.src.rpm
 * katello-0.1.303-1.el6.src.rpm
 * katello-candlepin-cert-key-pair-1.0-1.src.rpm
 * katello-certs-tools-1.0.4-1.el6.src.rpm
 * katello-cli-0.1.102-1.el6.src.rpm
 * katello-configure-0.1.104-1.el6.src.rpm
 * katello-qpid-broker-key-pair-1.0-1.src.rpm
 * katello-qpid-client-key-pair-1.0-1.src.rpm
 * katello-selinux-0.1.8-1.el6.src.rpm
 * pulp-1.0.0-4.el6.src.rpm

How reproducible:
 * Every RHEL5 install attempt

Steps to Reproduce:
1. Import official Red Hat provider MANIFEST
2. Enable and sync RHEL 5Server
3. Generate system template using 5Server
4. Promote all content
5. Observe pulp installation directory contents
  
Actual results:

# ls -ltd /var/www/pub/ks/redhat/Stage/content/dist/rhel/server/5/5Server/x86_64/os/*
drwxr-xr-x. 2 apache apache    4096 Mar 16 04:31 /var/www/pub/ks/redhat/Stage/content/dist/rhel/server/5/5Server/x86_64/os/repodata
-rw-r--r--. 1 apache apache 9371717 Mar 14 13:28 /var/www/pub/ks/redhat/Stage/content/dist/rhel/server/5/5Server/x86_64/os/updateinfo.xml
drwxr-xr-x. 3 apache apache    4096 Mar 14 12:42 /var/www/pub/ks/redhat/Stage/content/dist/rhel/server/5/5Server/x86_64/os/images
lrwxrwxrwx. 1 apache apache     106 Mar 14 12:42 /var/www/pub/ks/redhat/Stage/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 Mar 14 12:42 /var/www/pub/ks/redhat/Stage/content/dist/rhel/server/5/5Server/x86_64/os/drpms
drwxr-xr-x. 2 apache apache 1241088 Mar 14 12:42 /var/www/pub/ks/redhat/Stage/content/dist/rhel/server/5/5Server/x86_64/os/Packages

Expected results:

$ ls -ltd /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/* | grep -v "\(RELEASE\|README\)"
drwxr-xr-x. 3 root root 315392 Mar  3 10:27 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/Server/
drwxr-xr-x. 3 root root   8192 Mar  3 10:27 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/ClusterStorage/
drwxr-xr-x. 3 root root   8192 Mar  3 10:27 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/VT/
drwxr-xr-x. 3 root root   4096 Mar  3 10:25 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/Cluster/
drwxr-xr-x. 2 root root   4096 Feb  2 11:38 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/isolinux/
drwxr-xr-x. 4 root root   4096 Feb  2 11:38 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/images/
-rw-r--r--. 1 root root   8445 Jan 24 04:20 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/eula.en_US
-rw-r--r--. 1 root root   1706 Jan 24 04:20 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/RPM-GPG-KEY-redhat-beta
-rw-r--r--. 1 root root   1164 Jan 24 04:20 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/RPM-GPG-KEY-redhat-release
-rw-r--r--. 1 root root   8445 Sep  2  2008 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/EULA
-rw-r--r--. 1 root root  18416 Nov 30  2006 /mnt/redhat/released/RHEL-5-Server/U8/x86_64/os/GPL

Additional info:
 * The CDN url for this content is http://cdn.rcm-qa.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/   It contains *both* Packages/ and Server/ directories.

Comment 7 James Laska 2012-03-20 17:42:56 UTC
Still failing to install RHEL5 images with using cdn.rcm-qa.redhat.com synced as of this morning.

Comment 11 James Laska 2012-03-22 13:14:16 UTC
This bug is intended to track changes to CDN.  I'm cloning a new bug to track potential pulp code changes.

Reassigning this bug to dgregor.

Comment 13 Garik Khachikyan 2012-03-22 13:35:31 UTC
# COMMENT

Well, on recent CFSE Beta5 using live CDS I was able to sync RHEL 5u8 content,
prepare template and promoting to the Development environment, make an TDL
export file from that.

But CE team still fails to prepare an image from that and check the E2E cycle
there.

Comment 14 James Laska 2012-03-22 14:25:08 UTC
re-ack'ing, not sure why the ack was cleared

Comment 15 James Laska 2012-03-23 11:31:09 UTC
Assigning to dgregor.  This bug is tracking any RHEL5 CDN changes related to RHEL5 repodata/ structure.

bug#805925 is tracking pulp changes to accommodate the RHEL5 CDN layout

Comment 16 Og Maciel 2012-04-18 18:18:13 UTC
Verified:
* candlepin-0.5.26-1.el6.noarch
* candlepin-tomcat6-0.5.26-1.el6.noarch
* katello-0.1.309-1.el6.noarch
* katello-all-0.1.309-1.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.0.4-1.el6.noarch
* katello-cli-0.1.107-1.el6.noarch
* katello-cli-common-0.1.107-1.el6.noarch
* katello-common-0.1.309-1.el6.noarch
* katello-configure-0.1.107-1.el6.noarch
* katello-glue-candlepin-0.1.309-1.el6.noarch
* katello-glue-foreman-0.1.309-1.el6.noarch
* katello-glue-pulp-0.1.309-1.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-0.1.10-1.el6.noarch
* pulp-1.0.4-1.el6.noarch
* pulp-common-1.0.4-1.el6.noarch
* pulp-selinux-server-1.0.4-1.el6.noarch

Comment 18 Adam Jackson 2013-01-22 20:17:53 UTC
*** Bug 826398 has been marked as a duplicate of this bug. ***

Comment 19 Mike McCune 2013-08-16 17:57:14 UTC
getting rid of 6.0.0 version since that doesn't exist