Hi, I’m having trouble with the image type conversor when downloading image from private marketplace that has been uploaded from a vCenter imported datastore.
Instead of creating just a file in /var/lib/one/datastores/1 with the converted type (qcow2 in this case “DRIVER = qcow2”) it creates a directory with the following contents:
root@server:/var/lib/one/datastores/1/5cfff4b9331adb6f6ce905b180128778$ ls -ltr
-rw-r–r-- 1 oneadmin oneadmin 132055040 may 17 12:58 0.vmdk
-rw-r–r-- 1 oneadmin oneadmin 196608 may 17 12:59 5cfff4b9331adb6f6ce905b180128778.tmp
I’ve checked with qemu-img info that the .tmp is a qcow2. It seems like it fails because the directory doesn’t let .tmp move to the desired location (function convert_image in /var/lib/one/remotes/datastore/downloader.sh). Also it’s strange that the format attribute of the image changes from “vmdk” to “VMDK” when it’s uploaded to the marketplace.
I’m using OpenNebula 5.8.1 and the idea is to migrate a vmdk image from vCenter datastore to kvm datastore using a private http marketplace as explained in the documentation.