Bug 1376947 - ISO exporter exports content/ and listing file wrong
Summary: ISO exporter exports content/ and listing file wrong
Keywords:
Status: CLOSED DUPLICATE of bug 1369304
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Inter Satellite Sync
Version: 6.2.0
Hardware: All
OS: Linux
high
high vote
Target Milestone: Unspecified
Assignee: Chris Roberts
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-16 22:12 UTC by Josh Foots
Modified: 2019-12-16 06:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-21 22:35:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.