You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "Josh Thompson (Jira)" <ji...@apache.org> on 2021/03/05 17:59:00 UTC

[jira] [Created] (VCL-1131) kvm image copy/conversions failures not detected correctly

Josh Thompson created VCL-1131:
----------------------------------

             Summary: kvm image copy/conversions failures not detected correctly
                 Key: VCL-1131
                 URL: https://issues.apache.org/jira/browse/VCL-1131
             Project: VCL
          Issue Type: Bug
          Components: vcld (backend)
            Reporter: Josh Thompson
             Fix For: 2.6


When libvirt is used as the provisioning engine for a VM, and the qcow2 disk image file does not exist in the datastore for the reserved image, qemu-img is used to copy it from the repository. The command to copy it uses && to run both the qemu-img convert command and a follow up qemu-img info command.  The return code of the info command is all that gets returned to the vcld process, masking a possible failed error code from qemu-img convert.  If qemu-img convert fails part of the way through, qemu-img info still succeeds, and the VM is eventually provisioned, but with a broken backing file for its disk image.

The qemu-img convert and qemu-img info commands need to be separated so that vcld can read the return code of each of them.  The commands are in KVM.pm->copy_virtual_disk.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)