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

[2172853] Fail to import a datavolume with hostpath-csi-pvc-block storage class

XMLWordPrintable

    • Storage Core Sprint 236
    • High
    • None

      Description of problem:
      When try to clone a DV with hostpath-csi-pvc-block SC sometimes the DV fail to be cloned.

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

      How reproducible:
      flaky

      Steps to Reproduce:
      1. Import a DV with hostpath-csi-pvc-block SC

      Actual results:
      DV fail to be created

      Expected results:
      DV created successfully

      Additional info:
      $ oc logs importer-dv-source
      I0222 12:06:44.028076 1 importer.go:104] Starting importer
      I0222 12:06:44.028126 1 importer.go:171] begin import process
      I0222 12:06:44.040358 1 data-processor.go:379] Calculating available size
      I0222 12:06:44.040377 1 data-processor.go:391] Checking out file system volume size.
      I0222 12:06:44.040388 1 data-processor.go:399] Request image size not empty.
      I0222 12:06:44.040395 1 data-processor.go:404] Target size 1136234735.
      I0222 12:06:44.040785 1 nbdkit.go:303] Waiting for nbdkit PID.
      I0222 12:06:44.541810 1 nbdkit.go:324] nbdkit ready.
      I0222 12:06:44.541830 1 data-processor.go:282] New phase: Convert
      I0222 12:06:44.541871 1 data-processor.go:288] Validating image
      I0222 12:06:44.933526 1 qemu.go:259] 0.00
      E0222 12:06:44.942566 1 prlimit.go:174] qemu-img failed output is:
      E0222 12:06:44.942581 1 prlimit.go:175] (0.00/100%)

      E0222 12:06:44.942587 1 prlimit.go:176] qemu-img: /data/disk.img: error while converting raw: Could not create '/data/disk.img': Permission denied

      E0222 12:06:44.942649 1 data-processor.go:278] exit status 1
      qemu-img execution failed
      kubevirt.io/containerized-data-importer/pkg/system.executeWithLimits
      /remote-source/app/pkg/system/prlimit.go:178
      kubevirt.io/containerized-data-importer/pkg/system.ExecWithLimits
      /remote-source/app/pkg/system/prlimit.go:111
      kubevirt.io/containerized-data-importer/pkg/image.convertToRaw
      /remote-source/app/pkg/image/qemu.go:128
      kubevirt.io/containerized-data-importer/pkg/image.(*qemuOperations).ConvertToRawStream
      /remote-source/app/pkg/image/qemu.go:146
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).convert
      /remote-source/app/pkg/importer/data-processor.go:303
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:240
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594
      could not convert image to raw
      kubevirt.io/containerized-data-importer/pkg/image.convertToRaw
      /remote-source/app/pkg/image/qemu.go:136
      kubevirt.io/containerized-data-importer/pkg/image.(*qemuOperations).ConvertToRawStream
      /remote-source/app/pkg/image/qemu.go:146
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).convert
      /remote-source/app/pkg/importer/data-processor.go:303
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:240
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594
      Conversion to Raw failed
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).convert
      /remote-source/app/pkg/importer/data-processor.go:305
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:240
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594
      Unable to convert source data to target format
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:242
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594
      E0222 12:06:44.942750 1 importer.go:180] exit status 1
      qemu-img execution failed
      kubevirt.io/containerized-data-importer/pkg/system.executeWithLimits
      /remote-source/app/pkg/system/prlimit.go:178
      kubevirt.io/containerized-data-importer/pkg/system.ExecWithLimits
      /remote-source/app/pkg/system/prlimit.go:111
      kubevirt.io/containerized-data-importer/pkg/image.convertToRaw
      /remote-source/app/pkg/image/qemu.go:128
      kubevirt.io/containerized-data-importer/pkg/image.(*qemuOperations).ConvertToRawStream
      /remote-source/app/pkg/image/qemu.go:146
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).convert
      /remote-source/app/pkg/importer/data-processor.go:303
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:240
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594
      could not convert image to raw
      kubevirt.io/containerized-data-importer/pkg/image.convertToRaw
      /remote-source/app/pkg/image/qemu.go:136
      kubevirt.io/containerized-data-importer/pkg/image.(*qemuOperations).ConvertToRawStream
      /remote-source/app/pkg/image/qemu.go:146
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).convert
      /remote-source/app/pkg/importer/data-processor.go:303
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:240
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594
      Conversion to Raw failed
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).convert
      /remote-source/app/pkg/importer/data-processor.go:305
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:240
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594
      Unable to convert source data to target format
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).initDefaultPhases.func6
      /remote-source/app/pkg/importer/data-processor.go:242
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessDataWithPause
      /remote-source/app/pkg/importer/data-processor.go:275
      kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
      /remote-source/app/pkg/importer/data-processor.go:184
      main.handleImport
      /remote-source/app/cmd/cdi-importer/importer.go:177
      main.main
      /remote-source/app/cmd/cdi-importer/importer.go:143
      runtime.main
      /usr/lib/golang/src/runtime/proc.go:250
      runtime.goexit
      /usr/lib/golang/src/runtime/asm_amd64.s:1594

      $oc get dv -oyaml
      message: 'Unable to process data: Unable to convert source data to target format:
      Conversion to Raw failed: could not convert image to raw : qemu-img execution
      failed: exit

              akalenyu Alex Kalenyuk
              dafrank@redhat.com Dalia Frank
              Jenia Peimer Jenia Peimer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: