Image locked forever on large upload

I am trying to create an image from a 12GB windows2016 qcow2 file. It uploads for about an hour and then stops.

There is a tmp file in the folder that is the full size of my original and another file that is slightly smaller.

135e365268570e6105dcc0f0a4452555 11GB
135e365268570e6105dcc0f0a4452555.tmp 12GB

Is there a way to manually copy the file up?

oneimage create --name ‘Windows 2016’ --path ‘/mnt/glusterfs/image/win-2016.qcow2’ --driver qcow2 --datastore mak01-image-lvmqcow2


Versions of the related components and OS (frontend, hypervisors, VMs):

OpenNebula 5.10.1

Steps to reproduce:
oneimage create --name ‘Windows 2016’ --path ‘/mnt/glusterfs/image/win-2016.qcow2’ --driver qcow2 --datastore mak01-image-lvmqcow2

12 gb file

Current results:

Expected results:

and or, if I have a happy running KVM, is there a easier way to make it into an image?

You can copy the image manually to the front-end and use the PATH in the front-end to register the image. So if the tmp file is good use that path to registry the image, like the command you show.

If you place the image elsewhere in the front-end you may need to update SAFE_DIRS in the Image Datastore, to enable copy images from that directory (e.g. SAFE_DIRS=/mnt/glusterfs)