<div dir="auto">Yes, I find it annoying that I have to manually remove the no-nos bless leftover snapshot file. That'd be a great feature. In the mean time I will look at adding this additional error handling in my script. Thanks much!</div><div class="gmail_extra"><br><div class="gmail_quote">On Jun 30, 2017 10:55 AM, "Peter Krempa" <<a href="mailto:pkrempa@redhat.com">pkrempa@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Jun 30, 2017 at 10:41:25 -0400, <a href="mailto:doug.hughes@keystonenap.com">doug.hughes@keystonenap.com</a> wrote:<br>
> sorry about top post, tablet mail client...<br>
><br>
> brilliant! that did it! Any idea what happened to cause it to partially fail and get into this state?<br>
<br>
virsh blockcommit --pivot is actually 3 operations in sequence:<br>
1) initiate the commit job<br>
2) wait till it finishes<br>
3) initiate the pivot job (this is synchronous, so the wait till it<br>
finises is itegrated in the API call)<br>
<br>
Apparently in your case the waiting part failed for some reason and thus<br>
the job was not finished, lingering in the synchronised state.<br>
<br>
The unfortunate part is that you don't know which operation failed.<br>
<br>
Unfortunately it does not seem that we have wa waiting version of 'virsh<br>
blockjob' that could be used to do the waiting. You can do the polling<br>
manualy though.<br>
<br>
The third operation can be split out by default, since you can specify<br>
--wait instead of --pivot for 'virsh blockcommit' and it will finish<br>
after step 2 above.<br>
<br>
Also one of the cases which would help is that libvirt could actually<br>
remove the file after commit, which would avoid the original problem,<br>
since the file would still be there.<br>
<br>
> oot@vm1 ~]# virsh blockjob serv1r2 vda<br>
> Active Block Commit: [100 %]<br>
><br>
> [root@vm1 ~]# virsh blockjob --pivot serv1r2 vda<br>
><br>
> [root@vm1 ~]#<br>
> [root@vm1 ~]# ls -l /var/lib/libvirt/images/<wbr>serv1r2.qcow2<br>
> -rw-r--r--. 1 qemu qemu 54200696832 Jun 30 10:39 /var/lib/libvirt/images/<wbr>serv1r2.qcow2<br>
> [root@vm1 ~]# date<br>
> Fri Jun 30 10:39:12 EDT 2017<br>
> [root@vm1 ~]# date<br>
> Fri Jun 30 10:39:51 EDT 2017<br>
> [root@vm1 ~]# ls -l /var/lib/libvirt/images/<wbr>serv1r2.qcow2<br>
> -rw-r--r--. 1 qemu qemu 54200696832 Jun 30 10:40 /var/lib/libvirt/images/<wbr>serv1r2.qcow2<br>
> [root@vm1 ~]#<br>
</blockquote></div></div>