Bug 2106461
Summary: | oc-mirror fails to sync to disconnected registry | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Mike Allmen <mallmen> | ||||
Component: | oc | Assignee: | Ross Peoples <rpeoples> | ||||
oc sub component: | oc-mirror | QA Contact: | zhou ying <yinzhou> | ||||
Status: | CLOSED WONTFIX | Docs Contact: | |||||
Severity: | unspecified | ||||||
Priority: | unspecified | CC: | jpower, vdinh | ||||
Version: | 4.11 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2023-01-17 14:27:13 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
Mike Allmen
2022-07-12 17:55:54 UTC
For a bit more background. This bug has to do with how directories are unpacked when multiple imageset spans multiple archives. In this case, the 'archiveSize' is smaller than the combined size of the OCI layouts for these two catalogs. A possible solution is to update the structure returned from this function (https://github.com/openshift/oc-mirror/blob/c1cd75916009557cbb4c02402f0b0c14edb6de7b/pkg/bundle/files.go#L96) to allow multiple key values so the archive containing the directories is not overwritten. Correction on the previous comment. Please disregard the proposed solution. The directory itself is only stored in one archive. |