You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kvm: createtmplt.sh ignores qemu-img errors and marks an empty template ready #14858
When qemu-img fails while creating a template from a volume on KVM, createtmplt.sh ignores the error and exits 0. CloudStack marks the template Ready, but the image is empty. It only shows up later, when a VM from that template fails to boot with "No bootable device".
In create_from_file the qemu-img convert and cp results are never checked. The script then writes template.properties and exits 0. KVMStorageProcessor only looks at the exit code, so it reports success. create_from_snapshot in the same script already checks and exits non-zero.
This is not specific to any storage type. It was found on FlashArray FibreChannel, where a dead multipath device made every read fail.
versions
ACS 4.22.1.1, KVM on Ubuntu 24.04, qemu-img 8.2.2. The script is the same on 4.22 and main.
The steps to reproduce the bug
Run the script against a block device that fails every read:
Activity