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

ImagePruner error wrapping is incorrect

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • 3
    • None
    • None
    • None
    • None
    • MCO Sprint 280
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When the ImagePruner encounters an error while trying to inspect or delete an image, we inspect the errors in order to determine whether it is an access-denied error or the image does not exist.

       

      How reproducible:

      Pretty often in CI. See:

       

      Actual results:

      The e2e-gcp-op-ocl jobs fail. In particular, the TestImagePrunerOnCluster and TestMissingImageIsRebuilt make use of this error path.

       

      Expected results:

      The aforementioned tests should pass.

       

      Additional info:

      Previously, we were wrapping the errors in an ErrImage type that we were then inspecting. Some refactoring introduced additional points where we should have been wrapping errors with this specific type. Instead of doing that, we should wrap all errors in ErrImage and only use that to get the image pullspec, if needed elsewhere.

              zzlotnik@redhat.com Zack Zlotnik
              zzlotnik@redhat.com Zack Zlotnik
              None
              None
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: