Having trouble using the CDI importer with rook-ceph

I’m new to kubvirt and I need  to get an AlmaLinux9 image running so followed the labs page to try and import the disk image but hit an issue with rook-ceph. I just wanted to reach out as I’m not sure if I’m doing something wrong or there is a problem with rook-ceph.

blockdev: cannot open /dev/cdi-block-volume: Permission denied is the error I get – these are the steps I followed –

> kubevirt % kubectl get pod
NAME                                                     READY   STATUS             RESTARTS       AGE
alertmanager-prometheus-kube-prometheus-alertmanager-0   2/2     Running            0              4d1h
importer-prime-da643f96-1217-4f31-82ed-d12ca92e6534      0/1     CrashLoopBackOff   6 (91s ago)    9m12s
nginx-ingress-controller-bfb996b74-tdzwx                 1/1     Running            0              29h
prometheus-grafana-75cd5d9cfc-n6ws7                      3/3     Running            1 (5d1h ago)   5d1h
prometheus-kube-prometheus-operator-6445b4bc68-m4kpm     1/1     Running            0              4d1h
prometheus-kube-state-metrics-77bbdb6c6c-m87rq           1/1     Running            0              4d1h
prometheus-prometheus-kube-prometheus-prometheus-0       2/2     Running            0              8d
quickstart-es-default-0                                  1/1     Running            0              3d1h
> % kubectl logs -f importer-prime-da643f96-1217-4f31-82ed-d12ca92e6534
I0919 15:10:36.713833       1 importer.go:103] Starting importer
E0919 15:10:36.714560       1 importer.go:133] exit status 1, blockdev: cannot open /dev/cdi-block-volume: Permission denied

kubevirt.io/containerized-data-importer/pkg/util.GetAvailableSpaceBlock
        pkg/util/util.go:136
kubevirt.io/containerized-data-importer/pkg/util.GetAvailableSpaceByVolumeMode
        pkg/util/util.go:106
main.main
        cmd/cdi-importer/importer.go:131
runtime.main
        GOROOT/src/runtime/proc.go:250
runtime.goexit
        GOROOT/src/runtime/asm_amd64.s:1594

And thats as far as I get – blockdev: cannot open /dev/cdi-block-volume: Permission denied

Theres a mention of something similar here –

I tried 3 other versions of rook-ceph and re-tested – Tried 1.12.4 (first) then 1.11.11 , 1.12.3 and 1.12.2 – same error with each version.

Appreciate any pointers any of you have – I just want to get a base image of AL9 so that I can spin up some VMS based on this distro…

Thanks in advance!

Read more here: Source link