I can reproduce this reliably on Server 16.04.3 LTS.

virsh version
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0

I have 4 VMs, the one that consistently fails is write heavy, its a 
carbon/graphite server.
Steps to reproduce:

virsh snapshot-create-as --domain centos7-graphite centos7-graphite-
SNAP1 --diskspec vda,file=/var/lib/libvirt/images/centos7-graphite.img-
SNAP1 --disk-only --atomic

sleep 300 (approximate time of rsync of base img to destination)

virsh blockcommit centos7-graphite vda --active --pivot --shallow --verbose
This is where it fails:

Block commit: [100 %]error: failed to pivot job for disk vda
error: block copy still active: disk 'vda' not ready for pivot yet

I end up having to shut down the vm, delete snapshot metadata, delete
the disk attachment (the SNAP disk), and re-attach the original disk,
then boot the vm again to restore the vm.

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

Title:
  libvirt - disk not ready for pivot yet

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

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

Reply via email to