Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-8647

DeleteImageSetConfiguration should delete images that are present and ignore/skip those that are not synced/already deleted

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • oc-mirror
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      1. Proposed title of this feature request
      If we specify minVersion and maxVersion, DeleteImageSetConfiguration should delete images that are present and ignore/skip those that are not synced/already deleted.

      2. What is the nature and description of the request?
      New Feature

      3. Why does the customer need this? (List the business requirements here)
      ~~~
      kind: DeleteImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      delete:
      platform:
      architectures:

      • amd64
      • multi
        channels:
      • name: stable-4.19
        type: ocp
        minVersion: 4.19.7
        maxVersion: 4.19.9
        ~~~

      Cu is trying to run above 'DeleteImageSetConfiguration' to delete the platform images mirrored using oc-mirror v2, but it's failing with below error:
      ~~~
      oc mirror delete --generate --config /u01/tmp/delete_mirror.yaml --v2 --cache-dir '' --workspace file://'' docker://<registry-url> --log-level trace

      2025/11/13 12:38:51 [INFO] : 🔍 collecting release images...
      2025/11/13 12:38:51 [DEBUG] : [ReleaseImageCollector] setting copy option o.Opts.MultiArch=system when collecting releases image
      2025/11/13 12:38:51 [DEBUG] : processing minimum version 4.19.7 and maximum version 4.19.9
      2025/11/13 12:38:51 [TRACE] : previous channel

      { ocp false false}
      2025/11/13 12:38:51 [DEBUG] : processing minimum version 4.19.7 and maximum version 4.19.9
      2025/11/13 12:38:51 [TRACE] : previous channel { ocp false false}

      2025/11/13 12:38:51 [DEBUG] : [CollectAll] total release images to delete 0
      2025/11/13 12:38:51 [INFO] : 🔍 collecting operator images...
      2025/11/13 12:38:51 [DEBUG] : [OperatorImageCollector] setting copy option o.Opts.MultiArch= when collecting operator images
      2025/11/13 12:38:51 [DEBUG] : [OperatorImageCollector] related images length 0
      2025/11/13 12:38:51 [DEBUG] : [OperatorImageCollector] images to copy (before duplicates) 0
      2025/11/13 12:38:51 [DEBUG] : [CollectAll] total operator images to delete 0
      2025/11/13 12:38:51 [INFO] : 🔍 collecting additional images...
      2025/11/13 12:38:51 [DEBUG] : [AdditionalImagesCollector] setting copy option o.Opts.MultiArch= when collecting releases image
      2025/11/13 12:38:51 [DEBUG] : [CollectAll] total additional images to delete 0
      2025/11/13 12:38:51 [INFO] : 🔍 collecting helm images...
      2025/11/13 12:38:51 [DEBUG] : [CollectAll] total helm images to delete 0
      2025/11/13 12:38:51 [DEBUG] : collection time : 1.529845ms
      2025/11/13 12:38:51 [ERROR] : collection error: [GetReleaseReferenceImages] no release images found
      ~~~

              rhn-support-mkalinin Marina Kalinin
              rhn-support-rkale Rutuja Kale
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                None
                None