Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-61549

oc-mirror v2 diskToMirror unable to collect catalog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 4.19
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:

          

              rdossant Rafael Fonseca dos Santos
              rhn-support-bshaw Bikash Shaw
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: