Waiting for the test builds to be complete and testable (likely tmrw)
before continuing.

** Description changed:

+ [Impact]
+ 
+  * unable to use util storage users (like virt-clone) to process iso files 
+    through qemu-img
+ 
+  * an example is "virt-clone -o test-vm -n cloned-vm --auto-clone"
+ 
+  * Fix by backporting upstream fix
+ 
+ [Test Case]
+ 
+  * UVT Based test
+     $ uvt-simplestreams-libvirt sync release=xenial arch=amd64
+     $ uvt-kvm create test-vm release=xenial arch=amd64
+     $ virsh destroy test-vm
+     $ virt-clone -o test-vm -n cloned-vm --auto-clone
+ 
+ [Regression Potential]
+ 
+  * This fix is upstream a while now, so it should be fairly safe.
+    In general any user of virStorageBackendCreateQemuImgCmdFromVol could 
+    be affected (that is the function we change the behavior).
+    It's purpose is to convert a volume to a qemu-img call (to clone it).
+    Without the fix some image types fail.
+    - users cloning type iso today fail, this is fixed by the change
+    - the change does not effect other types than "iso"
+    - there is only one user of this function (in the same file, so not too 
+      much alternative ways to invoke we have to consider).
+ 
+ [Other Info]
+  
+  * n/a
+ 
+ ----
+ 
  Cloning a uvt VM fails with error: Unknown driver 'iso'
  
  To reproduce:
  
  uvt-simplestreams-libvirt sync release=xenial arch=amd64
  uvt-kvm create test-vm release=xenial arch=amd64
  virsh destroy test-vm
  virt-clone -o test-vm -n cloned-vm --auto-clone
  
  Which results in:
  
  WARNING  The requested volume capacity will exceed the available pool space 
when the volume is fully allocated. (8192 M requested capacity > 3898 M 
available)
- Allocating 'cloned-vm.qcow'                                                   
                                                                           | 
8.0 GB  00:00:01     
+ Allocating 'cloned-vm.qcow'                                                   
                                                                           | 
8.0 GB  00:00:01
  ERROR    Couldn't create storage volume 'test-vm-ds-clone.qcow': 'internal 
error: Child process (/usr/bin/qemu-img convert -f iso -O iso 
/var/lib/uvtool/libvirt/images/test-vm-ds.qcow 
/var/lib/uvtool/libvirt/images/test-vm-ds-clone.qcow) unexpected exit status 1: 
qemu-img: Could not open '/var/lib/uvtool/libvirt/images/test-vm-ds.qcow': 
Unknown driver 'iso'
  '

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1729858

Title:
  virt-clone fails with: Unknown driver 'iso'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1729858/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to