Bug 1295880
Summary: | katello-disconnected fails to sync and export ISO/Image repositories | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jesus M. Rodriguez <jesusr> |
Component: | Inter Satellite Sync | Assignee: | Jesus M. Rodriguez <jesusr> |
Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.5 | CC: | bkearney, cwelton, jmatthew, mmccune |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
The disconnected server was only able to handle rpm repositories, not ISO repositories. The code was updated to support iso repositories as well. (BZ#1295880)
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-02-10 15:37:48 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1212602, 1292898, 1294535 |
Description
Jesus M. Rodriguez
2016-01-05 16:39:43 UTC
My research found a few problems: 1) when talking to pulp, the ISO distributor and importer needed to be used in order for pulp to sync ISO/files/images repos. 2) the export wasn't tarring up the isos directory which caused the exported content not to contain any of the ISO/files/images that were synced by pulp. 3) the expand_export.sh script would only expand the content-export-?? files and would skip any other exported content files in the directory. This is because tar stops processing once it finds the end of file from the cat command. So while content-export-* might match all the files in the directory, only the -?? get processed first the last one has an EOF which causes tar to stop. A pull request was created to address the above issues: https://github.com/Katello/katello-utils/pull/4 TEST PLAN ----------- To test follow the instructions for setting up a Disconnected Sync host: https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html/User_Guide/sect-Disconnected_Satellite.html Then section 4.3.2. Synchronizing Content, sync only a "files" repository (makes it easier to test) # katello-disconnected disable --all # katello-disconnected enable -r cf-me-5_4-for-rhel-6-files--x86_64 # katello-disconnected configure # katello-disconnected sync *) verify /var/lib/pulp/content/iso has some content in it Once sync is complete then EXPORT the content to a temporary directory, following the instructions found here: https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html/User_Guide/Exporting_Content.html *) verify the expand_export.sh script contains the new cat | tar commands. run expand_export.sh *) verify that you have .ova and .qcow2 files RHCI team has verified functionality of this BZ and performed best-effort to assure there have been no regressions due to the changes added. Marking verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:0161 |