Bug 1300046

Summary: [Docs] Syncing images/isos for disconnected requires post-processing
Product: Red Hat Quickstart Cloud Installer Reporter: Jesus M. Rodriguez <jesusr>
Component: doc-Installation_GuideAssignee: rhci-docs
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: adahms, bthurber, jesusr, jlabocki, jmatthew, juwu
Target Milestone: gaKeywords: Documentation, Triaged
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: 2017-04-03 05:52:49 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:
Attachments:
Description Flags
script to fix export none

Description Jesus M. Rodriguez 2016-01-19 20:08:12 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:

# 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-19 20:11:12 UTC
Created attachment 1116349 [details]
script to fix export

This script will contain the commands the user should run or they can download the script and fix their exports more easily.

Usage: ./fix_export.sh /path/to/export

For example if your content lives in /var/tmp/export/content then pass in /var/tmp/export to the script.

Comment 2 Jesus M. Rodriguez 2016-01-20 15:27:06 UTC
*** Bug 1300045 has been marked as a duplicate of this bug. ***

Comment 9 Andrew Dahms 2017-04-03 05:52:49 UTC
Hi Jesus,

Thank you for raising this bug.

Given the current direction of QCI, only critical bugs are to be addressed in the documentation going forward.

As such, I will be closing this bug, but please let me know if you have any questions or concerns.

Kind regards,

Andrew