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:

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 ***