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

A --dry-run option in oc-mirror version 2 deletes yaml resources in the ocp_mirror/working-dir/cluster-resources/ directory

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, when using oc-mirror v2 in dry-run, the folder working-dir/cluster-resources was cleared. As a result, files such as idms-oc-mirror.yaml and itms-oc-mirror.yaml generated by a previous mirroring were deleted.
      With this change, the cluster-resources folder is no longer cleared when the dry-run flag is used.
      Show
      Previously, when using oc-mirror v2 in dry-run, the folder working-dir/cluster-resources was cleared. As a result, files such as idms-oc-mirror.yaml and itms-oc-mirror.yaml generated by a previous mirroring were deleted. With this change, the cluster-resources folder is no longer cleared when the dry-run flag is used.
    • Bug Fix
    • In Progress

      Description of problem:

          When using oc-mirror version 2, it creates idms-oc-mirror.yaml and itms-oc-mirror.yaml after a successful mirroring process(mirror to mirror). However, On a second attempt, I've added an operator in the imageset-config.yaml and then re-run the same command with a --dry-run, I noticed that these resource files got deleted. 
      
      
      

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          always

      Steps to Reproduce:

          1. Create a imageset-config.yaml
          2. Run oc-mirror --v2, mirror images
          3. Run with a --dry-run option
          

      Actual results:

          the existing yaml in the ocp_mirror/working-dir/cluster-resources/ directory when running with a --dry-run option

      Expected results:

          --dry-run supposed not to delete files

      Additional info:

          tested with 4.17 oc-mirror version

              rdossant Rafael Fonseca dos Santos
              rhn-support-dchong Daniel Chong
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: