Bug 1300045

Summary: Syncing images/isos for disconnected requires post-processing
Product: Red Hat Quickstart Cloud Installer Reporter: Jesus M. Rodriguez <jesusr>
Component: doc-Release_NotesAssignee: rhci-docs
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: bthurber, jlabocki
Target Milestone: ---   
Target Release: 1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-20 15:27:06 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 Jesus M. Rodriguez 2016-01-19 20:06:37 UTC
Customers will follow the instructions for setting a synchronization host for synchronizing content for a Disconnected Satellite.

https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html/User_Guide/sect-Disconnected_Satellite.html

Unfortunately, pulp (the backing server hosting the content) does not export ISO/images to a directory structure friendly for use by RHCI as a CDN. The ISO/images are put in a top directory cf-me-5_4-for-rhel-6-files--x86_64/ instead of being in the content/ directory.

Pulp is adding support for this, but in the mean time we need to document that after exporting and expanding the content:

# katello-disconnected export -t /var/tmp/export
# ./expand_export.sh
*** Done expanding archives. ***

The user needs to post process the results with the following commands:

EXPORT_DIR=/var/tmp/export

# fix cf-me image files
mkdir -p $EXPORT_DIR/content/dist/cf-me/server/5.5/x86_64/files/
mkdir -p $EXPORT_DIR/content/dist/cf-me/server/5.4/x86_64/files/

mv cf-me-5_5-for-rhel-7-files--x86_64/* $EXPORT_DIR/content/dist/cf-me/server/5.5/x86_64/files/

mv cf-me-5_4-for-rhel-6-files--x86_64/* $EXPORT_DIR/content/dist/cf-me/server/5.4/x86_64/files/

# fix openstack directory files
mkdir -p $EXPORT_DIR/content/dist/rhel/server/7/7Server/x86_64/openstack-director/7.0/files/
mv rhel-7-server-openstack-7_0-files-7Server-x86_64/* $EXPORT_DIR/content/dist/rhel/server/7/7Server/x86_64/openstack-director/7.0/files/

# recursively fix openstack listing files
fix_listing_files $EXPORT_DIR/content/dist/rhel/server/7/7Server/x86_64/openstack-director/7.0/ true

Comment 1 Jesus M. Rodriguez 2016-01-20 15:27:06 UTC

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