Populating Content on Disconnected Satellite with Repositories
Environment
Satellite 6.7, 6.8, 6.9
Issue
There are two methods for populating disconnected satellites with content, content ISOs and exporting/importing content from another satellite. Content ISO's are scheduled to be discontinued in the future. This solution will endeavor to elaborate on the directions provided in the Content Manager Guide.
For instructions on transferring content to content views, please see this KCS:
Populating Content on Disconnected Satellite with Content Views
Resolution
To export repository content from a connected satellite, a few conditions must be met:
- The repositories that you wish to export must have a download policy of "immediate".
- The default export location on the connected satellite is
/var/lib/pulp/katello-export/. Make sure it has enough space to hold the export. - Exported repositories can be used to enable repositories on the disconnected satellite.
Steps for Export
1. Make sure that the repositories that are being exported are set to "immediate" download policy and synced.
2. List the repositories to find their ID.
# hammer repository list
3. Export the repository. Replace $id with the ID from the step above.
# hammer repository export --id $id
4. The export command will create a directory under /var/lib/pulp/katello-export/ with the name of a uuid. That directory will contain the contents of the repository. Tar the directory to make it easy to move. In this example the command is:
# tar -cf export.tar 1ff3bac8-6ca5-447c-a082-9e061bef3ae4/
5. Move the tar file to the disconnected satellite.
Steps for Import
1. Create the directory /var/www/html/pub/export/ and place the export file there. Untar the export file.
# tar -xf export.tar
2. In the disconnected Satellite UI, go to Content --> Subscriptions --> Manage Manifest. If you haven't installed a manifest on this satellite yet, do so now. Change the "Red Hat CDN URL" to match your exported files. In this example, the url will be: https://disconnected.local.net/pub/export/1ff3bac8-6ca5-447c-a082-9e061bef3ae4/Default_Organization/Library/. Make sure to include up to Library in the url. Click the update button. You should now be able to go into Content --> Red Hat Repositories and enable the repository you exported.
3. Go to Content --> Products and change the download option for the repository to "immediate" and set the "Mirror on Sync" option to no. You can now click on the sync button and sync the repository.
For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.