Bug 2054911
Summary: | oc image mirror --from-dir ignores --from-dir | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | John Marley <jmarley> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED NOTABUG | QA Contact: | zhou ying <yinzhou> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.8 | CC: | aos-bugs, mfojtik |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | --- | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-02-16 23:53:29 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: |
Description
John Marley
2022-02-16 01:20:10 UTC
I've also tried these variations: oc image mirror --from-dir=/home/otjm452/mirror file://openshift/release:4.8.29-* gitlab01.priv.support.energyq.net.au:5000/tivoli/openshift/ocp4/openshift --loglevel=5 oc image mirror --from-dir=/home/otjm452/mirror file://openshift/release:4.8.29-* gitlab01.priv.support.energyq.net.au:5000/tivoli/openshift/ocp4/openshift --loglevel=5 --dir=notset oc image mirror --dir=/home/otjm452/mirror file://openshift/release:4.8.29-* gitlab01.priv.support.energyq.net.au:5000/tivoli/openshift/ocp4/openshift --loglevel=5 oc image mirror --dir=/home/otjm452/mirror file://openshift/release:4.8.29-* gitlab01.priv.support.energyq.net.au:5000/tivoli/openshift/ocp4/openshift --loglevel=5 --from-dir=notset all produce the same results. I've also run it with strace and I can see it running newfstatat() against all the files under mirror/v2/openshift/release/manifests, but not the files under mirror/v2/openshift/release/blobs, so it looks like the mirror has files where they're expected. It's just not matching the files. Oh, I've also tried oc 4.8.23 and 4.9.9 with the same results. I've also tried 4.8.3 (with the same results) which is the version in which this problem was supposedly fixed according to https://access.redhat.com/solutions/4952051 Found the solution. When the mirror was copied to the internal network, the manifest symbolic links were not preserved. With the links restored it's proceeding as expected. |