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

[disk-uploader] panic got created for a missing/deleted volume

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • CNV v4.18.0
    • CNV v4.18.0
    • CNV Infrastructure
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.16.6.rhel9-166
    • None

      Description of problem:

      During a test case where volume is missing/deleted, panic is seen. 
      W0106 19:14:07.943868      12 client_config.go:659] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
      {"level":"info","ts":1736190847.9453526,"caller":"disk-uploader/main.go:39","msg":"Creating a new Secret object...","namespace":"test-custom-pipeline-ns","name":"fedora-vm-diskuploader-1736190801-8445785"}
      {"level":"info","ts":1736190847.999733,"caller":"disk-uploader/main.go:46","msg":"Creating a new VirtualMachineExport object...","namespace":"test-custom-pipeline-ns","name":"fedora-vm-diskuploader-1736190801-8445785"}
      {"level":"info","ts":1736190848.0400925,"caller":"disk-uploader/main.go:53","msg":"Waiting for VirtualMachineExport status to be ready..."}
      {"level":"info","ts":1736190878.0517423,"caller":"disk-uploader/main.go:59","msg":"Getting raw disk URL from the VirtualMachineExport object status..."}
      panic: volume fedora-vm-diskuploader-1736190801-8445785 is not found in VirtualMachineExport internal volumes [recovered]
          panic: volume fedora-vm-diskuploader-1736190801-8445785 is not found in VirtualMachineExport internal volumesgoroutine 1 [running]:
      github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit.HandleExit()
          /remote-source/app/modules/shared/pkg/exit/exit.go:80 +0xbe
      panic({0x1e8a760?, 0xc0003128e0?})
          /usr/lib/golang/src/runtime/panic.go:770 +0x132
      github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit.ExitOrDieFromError(0x3, {0x2302760, 0xc00059cf50}, {0x0, 0x0, 0x29?})
          /remote-source/app/modules/shared/pkg/exit/exit.go:60 +0x134
      main.main()
          /remote-source/app/cmd/disk-uploader/main.go:148 +0x3bc

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

      4.18

      How reproducible:

      always

      Steps to Reproduce:

      1.Use any missing/deleted volume
      2.
      3.
      

      Actual results:

          panic: volume fedora-vm-diskuploader-1736190801-8445785 is not found in VirtualMachineExport internal volumesgoroutine 1 [running]:
      github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit.HandleExit()
          /remote-source/app/modules/shared/pkg/exit/exit.go:80 +0xbe
      panic({0x1e8a760?, 0xc0003128e0?})
          /usr/lib/golang/src/runtime/panic.go:770 +0x132
      github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit.ExitOrDieFromError(0x3, {0x2302760, 0xc00059cf50}, {0x0, 0x0, 0x29?})
          /remote-source/app/modules/shared/pkg/exit/exit.go:60 +0x134
      main.main()
          /remote-source/app/cmd/disk-uploader/main.go:148 +0x3bc

      Expected results:

      avoid getting into panic state

      Additional info:

       

              ksimon@redhat.com Karel Simon
              gkapoor@redhat.com Geetika Kapoor
              Geetika Kapoor Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: