Uploaded image for project: 'Migration Toolkit for Red Hat Openshift Project Lead'
  1. Migration Toolkit for Red Hat Openshift Project Lead
  2. MTRHO-74

[BUG] crane export hangs on namespaces with high number of imagestreamtags

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • No

      *What version of crane are you running, and what are your clutsters+platform*

      `crane version`
      ```
      crane:
      Version: v0.0.3
      crane-lib:
      Version: v0.0.6
      ```

      Running crane cli and exporting a namespace on OpenShift 4.8.23

      *What did you expect to happen?*
      The crane export command to complete

      *What actually happened?*
      The crane command hangs in the `adding resource` stage, the command is stuck when trying to add image stream tags on namespaces with a lot of these objects. The namespace had 2707 image stream tags. When exporting a namespace with a small amount of image stream tags, the command works.
      This did not happen on the previous version of crane-lib(v0.0.5). (I used the exact same namespace)

      *Please include any relevant logs or errors*
      ```
      DEBU[0005] processing resource: image.openshift.io/v1.ImageStream
      INFO[0006] adding resource: imagestreams to the list of GVRs to be extracted
      DEBU[0006] processing resource: image.openshift.io/v1.ImageStreamTag
      ```

            rh-ee-dzager David Zager
            rh-ee-dzager David Zager
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: