Description of problem:
oc-mirror v2 diskToMirror unable to collect catalog
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
Here are the steps: 1. Perform the usual mirrorToDisk using the same isc.yaml to obtain a set of imagesets tar files into a folder. 2. Transfer only the tar files and isc.yaml into a NEW FOLDER and perform DISKTOMIRROR operations Specify the cache-directory as the present working directory using the flag " --cache-dir=." so that the images will be unarchived in that directory. This is to simulate the new terminal in the disconnected environment where only tar-files and isc.yaml are transferred over, working-dir is not transferred over. Full command : oc-mirror -c isc-from file:///<working-directory> docker://<remote-registry> --dest-tls-verify=false --image-timeout=1200s --v2 --cache-dir=. --dry-run --log-level=debug You should be seeing that oc-mirror errors out because it couldn't collect the operator-index image. Here are my queries: My oc-mirror diskToMirror operations are failing because it cannot collect the operator-index image after unarchiving all the tar files. All I know is that my oc-mirror diskToMirror operations with the same set of tar files are failing when I have an empty cache directory + an absent working-dir Could I know what are probable causes for this? Are both the working directory and the cache directory essential for diskToMirror operations? My understanding is that the diskToMirror operations should not have any dependency on the cache-directory.
Actual results:
Expected results:
Additional info:
- duplicates
-
OCPBUGS-57784 oc-mirror errors out showing it trying to fetch from registry.redhat.io, in air-gapped env.
-
- Closed
-