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 1376947

Summary: ISO exporter exports content/ and listing file wrong
Product: Red Hat Satellite Reporter: Josh Foots <jfoots>
Component: Inter Satellite SyncAssignee: Chris Roberts <chrobert>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, chrobert, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-21 22:35:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josh Foots 2016-09-16 22:12:45 UTC
Description of problem:

When you run hammer> repository export --id 4 --export-to-iso yes
[...........................                                               ] [37%]
[.........................................................................] [100%]

The resulting ISOs will not import into a disconnected satellite. It errors out with "Error: RPM1004: Error retrieving metadata: Not found" 

Version-Release number of selected component (if applicable):


How reproducible:

Very

Steps to Reproduce:
1. hammer> repository export --id 4 --export-to-iso yes
2. move to disconnected satellite
3  mkdir -p /var/www/html/pub/sat-import/
4  mkdir /mnt/iso
5  mount -o loop Default-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_Kickstart_x86_64_7_0-2016-09-14T17.30-01.iso /mnt/iso
6  cp -ruv /mnt/iso/* /var/www/html/pub/sat-import/
7  umount /mnt/iso
8  mount -o loop Default-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_Kickstart_x86_64_7_0-2016-09-14T17.30-02.iso /mnt/iso
9  cp -ruv /mnt/iso/* /var/www/html/pub/sat-import/
10 umount /mnt/iso
11 rmdir /mnt/iso/ 
12 restorecon -rv /var/www/html/pub/sat-import/
13 changed the cdn url to http://<hostname>/pub/sat-import/
14 sync repository


Actual results:

"Error: RPM1004: Error retrieving metadata: Not found" 

Expected results:

Sync to complete successfully.


Additional info:

The RCA is the placement of the content/ dir and listing file. To remedy:

1 cd /var/www/html/pub/sat-import/Default/Library/
2 ls
3 mv content/ /var/www/html/pub/sat-import/
4 mv listing /var/www/html/pub/sat-import/

The will complete successfully after this.

Comment 4 Chris Roberts 2016-09-21 22:35:14 UTC

*** This bug has been marked as a duplicate of bug 1369304 ***