The error message is just a notification that the produced result cannot be read, so size is unknown.
I’m not sure if this helps, but in the docs they show you how to first create a template, with details like “path” in it. Then they create the image using that template, to the datastore.
Seems you can’t create the image from a file straight into a datastore.
To register it from the command line you need to create a new image template, and submit it using the oneimage create command.
The complete reference for the image template is here. This is how a sample template looks like:
cat ubuntu_img.one
NAME = "Ubuntu"
PATH = "/home/cloud/images/ubuntu-desktop/disk.0"
TYPE = "OS"
DESCRIPTION = "Ubuntu desktop for students."
You need to choose the Datastore where to register the new Image. To know the available datastores, use the onedatastore list command. In a clean installation you will only have one datastores with type img, default.
onedatastore list
ID NAME SIZE AVAIL CLUSTERS IMAGES TYPE DS TM STAT
0 system 145.2G 56% 0 0 sys - shared on
1 default 145.2G 56% 0 3 img fs shared on
2 files 145.2G 56% 0 0 fil fs ssh on
To submit the template, you just have to issue the command