Closed emteelb closed 11 months ago
Could you apply this patch and try again?
/var/lib/one/remotes/datastore/libfs.sh
function image_vsize {
- echo "$($QEMU_IMG info "${1}" 2>/dev/null | sed -n 's/.*(\([0-9]*\) bytes).*/\1/p')"
+ echo "$($QEMU_IMG info --output json "${1}" | jq '."virtual-size"')"
}
Thank you for the fast response. Applying the patch worked and I was able to create an image in both the default and linstor datastores.
Feel free to close this issue... or leave open until patch committed to code?
The upstream is already fixed but the CE packages have not been released yet.
Thanks for reporting it anyway.
cannot create an image: [one.image.allocate] "Cannot parse image SIZE" error
Installed miniONE for evaluation on an AlmaLinux 9 VM cluster. Front-end + three virtualization host nodes. All libvirt VMs.
Front end installed by using
https://github.com/OpenNebula/minione/releases/latest/download/minione
Host nodes installed by using the OpenNebula CE
opennebula-node-kvm
package (https://downloads.opennebula.io/repo/6.6/AlmaLinux/9/x86_64/)I can't create an image, neither in the default datastore, nor in a
linstor
added datastore (by using the LINSTOR OpenNebula driver). I get the same error whether I try to create the image using the Sunstone web GUI or theoneimage create
CLI command.I have tried a couple different images,
.img
and.iso
files with the same error message. Here's an example trying to create an image from a 54M Slitaz Linux ISO:Line 446:
I am not sure what the error message is suggesting is missing... "
)'", "
)", or just "`"?If I try to look back at how
$SIZE
is set and changed through the file, I come up w/ this:If I enter all of that independently of the
libfs.sh
script, and thenecho $SIZE
, I get:No errors.
Thanks in advance for any help and guidance here.