Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-69038

change importsToKeep default from 3 to 1 to avoid unused PVC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • CNV v4.21.0
    • None
    • Storage Platform
    • None
    • CNV Storage Sprint 280, CNV Storage Sprint 281, CNV Storage Sprint 282
    • Low
    • None

      Description of problem:

      DataImportCron keeps 3 old import PVCs by default, wasting storage because there’s no UI to select older images. Default should be 1.
      
      $ oc explain dic.spec.importsToKeep
      GROUP:      cdi.kubevirt.io
      KIND:       DataImportCron
      VERSION:    v1beta1
      
      FIELD: importsToKeep <integer>
      
      DESCRIPTION:
          Number of import PVCs to keep when garbage collecting. Default is 3.

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

      4.20

      How reproducible:

      always 

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

      Three prior import PVCs are kept by default.

      Expected results:

      Keep only one prior import by default, or expose version selection in the UI. Given there is no UI, default to importsToKeep: 1.

      Additional info:

      Based on slack discussion : https://redhat-internal.slack.com/archives/C01B610HL81/p1754993125979599

              gaohoward Howard Gao
              gkapoor@redhat.com Geetika Kapoor
              Kate Shvaika Kate Shvaika
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: