I am trying to import a big size image into Openshift PVC via Kubevirt CDI.
The openshift cluster has been setup correctly in a GCP env and kubevirt is installed and I am also able to upload smaller size image via CDI.
Now I have a 57G size image file (virtual image size is 100G). When I upload the image file, it is always failed at the resize phase, regardless the pvc size I provided (100,105,120,250).
Btw: all worker nodes have a 512G disk size.
Do you have any experience with it? Thanks and best regards
I0410 10:09:24.844405 1 uploadserver.go:62] Upload destination: /data/disk.img
I0410 10:09:24.851660 1 uploadserver.go:64] Running server on 0.0.0.0:8443
I0410 10:09:29.321074 1 uploadserver.go:263] Content type header is ""
I0410 10:09:29.321108 1 data-processor.go:253] Calculating available size
I0410 10:09:29.333247 1 data-processor.go:261] Checking out file system volume size.
I0410 10:09:29.333280 1 data-processor.go:265] Request image size not empty.
I0410 10:09:29.333297 1 data-processor.go:270] Target size 115641389056.
I0410 10:09:29.333367 1 util.go:37] deleting file: /scratch/lost+found
I0410 10:09:29.373965 1 util.go:37] deleting file: /data/lost+found
I0410 10:09:29.395729 1 data-processor.go:183] New phase: TransferScratch
I0410 10:09:29.398667 1 util.go:169] Writing data...
I0410 10:27:49.255858 1 data-processor.go:183] New phase: Process
I0410 10:27:49.256075 1 data-processor.go:183] New phase: Convert
I0410 10:27:49.256086 1 data-processor.go:189] Validating image
I0410 11:48:36.318849 1 data-processor.go:183] New phase: Resize
W0410 11:48:36.364778 1 data-processor.go:240] Available space less than requested size, resizing image to available space 115641389056.
I0410 11:48:36.373273 1 data-processor.go:246] Expanding image size to: 115641389056
E0410 11:48:36.417112 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.417557 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.447318 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.447361 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.473940 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.474053 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.500538 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.500607 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.527910 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.527944 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.555583 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.555665 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.583009 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.583034 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.609740 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.609768 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.636053 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.636086 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.665452 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.665542 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.693494 1 prlimit.go:164] qemu-img failed output is:
E0410 11:48:36.693525 1 prlimit.go:165] qemu-img: Could not preallocate new data: No space left on device
E0410 11:48:36.693574 1 data-processor.go:180] exit status 1
qemu-img execution failed
kubevirt.io/containerized-data-importer/pkg/system.ExecWithLimits
/go/src/kubevirt.io/containerized-data-importer/pkg/system/prlimit.go:166
kubevirt.io/containerized-data-importer/pkg/image.(*qemuOperations).Resize
/go/src/kubevirt.io/containerized-data-importer/pkg/image/qemu.go:139
kubevirt.io/containerized-data-importer/pkg/util.RetryBackoffSize
/go/src/kubevirt.io/containerized-data-importer/pkg/util/util.go:142
kubevirt.io/containerized-data-importer/pkg/importer.ResizeImage
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:247
kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).resize
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:217
kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:172
kubevirt.io/containerized-data-importer/pkg/uploadserver.newUploadStreamProcessor
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:292
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).uploadHandler
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:265
net/http.HandlerFunc.ServeHTTP
/usr/lib/golang/src/net/http/server.go:1995
net/http.(*ServeMux).ServeHTTP
/usr/lib/golang/src/net/http/server.go:2375
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).ServeHTTP
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:207
net/http.serverHandler.ServeHTTP
/usr/lib/golang/src/net/http/server.go:2774
net/http.(*conn).serve
/usr/lib/golang/src/net/http/server.go:1878
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:1337
Error resizing image /data/disk.img
kubevirt.io/containerized-data-importer/pkg/image.(*qemuOperations).Resize
/go/src/kubevirt.io/containerized-data-importer/pkg/image/qemu.go:141
kubevirt.io/containerized-data-importer/pkg/util.RetryBackoffSize
/go/src/kubevirt.io/containerized-data-importer/pkg/util/util.go:142
kubevirt.io/containerized-data-importer/pkg/importer.ResizeImage
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:247
kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).resize
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:217
kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:172
kubevirt.io/containerized-data-importer/pkg/uploadserver.newUploadStreamProcessor
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:292
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).uploadHandler
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:265
net/http.HandlerFunc.ServeHTTP
/usr/lib/golang/src/net/http/server.go:1995
net/http.(*ServeMux).ServeHTTP
/usr/lib/golang/src/net/http/server.go:2375
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).ServeHTTP
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:207
net/http.serverHandler.ServeHTTP
/usr/lib/golang/src/net/http/server.go:2774
net/http.(*conn).serve
/usr/lib/golang/src/net/http/server.go:1878
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:1337
Resize of image failed
kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).resize
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:219
kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:172
kubevirt.io/containerized-data-importer/pkg/uploadserver.newUploadStreamProcessor
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:292
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).uploadHandler
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:265
net/http.HandlerFunc.ServeHTTP
/usr/lib/golang/src/net/http/server.go:1995
net/http.(*ServeMux).ServeHTTP
/usr/lib/golang/src/net/http/server.go:2375
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).ServeHTTP
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:207
net/http.serverHandler.ServeHTTP
/usr/lib/golang/src/net/http/server.go:2774
net/http.(*conn).serve
/usr/lib/golang/src/net/http/server.go:1878
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:1337
Unable to resize disk image to requested size
kubevirt.io/containerized-data-importer/pkg/importer.(*DataProcessor).ProcessData
/go/src/kubevirt.io/containerized-data-importer/pkg/importer/data-processor.go:174
kubevirt.io/containerized-data-importer/pkg/uploadserver.newUploadStreamProcessor
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:292
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).uploadHandler
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:265
net/http.HandlerFunc.ServeHTTP
/usr/lib/golang/src/net/http/server.go:1995
net/http.(*ServeMux).ServeHTTP
/usr/lib/golang/src/net/http/server.go:2375
kubevirt.io/containerized-data-importer/pkg/uploadserver.(*uploadServerApp).ServeHTTP
/go/src/kubevirt.io/containerized-data-importer/pkg/uploadserver/uploadserver.go:207
net/http.serverHandler.ServeHTTP
/usr/lib/golang/src/net/http/server.go:2774
net/http.(*conn).serve
/usr/lib/golang/src/net/http/server.go:1878
runtime.goexit
/usr/lib/golang/src/runtime/asm_amd64.s:1337
I0410 11:48:36.724362 1 util.go:37] deleting file: /scratch/tmpimage
E0410 11:48:39.688341 1 uploadserver.go:271] Saving stream failed: Unable to resize disk image to requested size: Resize of image failed: Error resizing image /data/disk.img: qemu-img execution failed: exit status 1