containerized-data-importer: virtctl image-upload xxx cannot open /dev/cdi-block-volume: Permission denied

What happened:

virtctl image-upload --uploadproxy-url=https://10.105.77.138 \

–insecure
dv img-cirros-0.4.0
–size=2Gi
-n default
–storage-class=rook-ceph-block
–access-mode=ReadWriteMany
–block-volume
–image-path=./cirros-0.4.0-x86_64-disk.raw

PVC default/img-cirros-0.4.0 not found DataVolume default/img-cirros-0.4.0 created Waiting for PVC img-cirros-0.4.0 upload pod to be ready… Pod now ready Uploading data to https://10.105.77.138

1.50 MiB / 44.00 MiB [========>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 3.41% 0s

unexpected return value 500, Saving stream failed: Unable to transfer source data to target file: error determining if block device exists: exit status 1, blockdev: cannot open /dev/cdi-block-volume: Permission denied

How to reproduce it (as minimally and precisely as possible): Steps to reproduce the behavior.

Additional context: Add any other context about the problem here.

Environment:

  • CDI version (use kubectl get deployments cdi-deployment -o yaml): 1.55.0
  • Kubernetes version (use kubectl version): v1.22.13
  • DV specification: N/A
  • Cloud provider or hardware configuration: vmware
  • OS (e.g. from /etc/os-release): CentOS7.9-x64
  • Kernel (e.g. uname -a): Linux master 5.4.211-1.el7.elrepo.x86_64 #1 SMP Wed Aug 24 08:48:49 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (13 by maintainers)

Most upvoted comments

We updated our documentation to include that particular fix with this PR https://github.com/kubevirt/containerized-data-importer/pull/2458 closing this issue