Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-1856

Not handling OVA NFS URL if it does not contain ":" char

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.7.8
    • None
    • Controller
    • False
    • None
    • True

      In our code:
      https://github.com/kubev2v/forklift/blob/main/pkg/controller/provider/ova-setup.go#L74

      we do not handle the case of missing ":" in the NFS URL
      this will create an unhanded error:

      {"level":"info","ts":"2024-12-29 10:46:32.872","msg":"Observed a panic in reconciler: runtime error: index out of range [1] with length 1","controller":"provider","object":\{"name":"ova-server","namespace":"ova-server"}

      ,"namespace":"ova-server","name":"ova-server","reconcileID":"6322e786-c0cd-42eb-b05c-32d644704caa"}

      How to reproduce:
      Create/Edit a OVA provider with URL that does not have ":" in it's URL string

              yzamir@redhat.com Yaacov Zamir
              yzamir@redhat.com Yaacov Zamir
              Chenli Hu Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: