<div dir="ltr">Hi Markus,<div><br></div><div>Few errors are expected. Do you still see the snapshot in the GUI?</div><div>Can you please send engine logs as well.</div><div><br></div><div>Thanks,</div><div>Ala</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 9, 2016 at 8:33 PM, Markus Stockhausen <span dir="ltr">&lt;<a href="mailto:stockhausen@collogia.de" target="_blank">stockhausen@collogia.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Arial;color:#000000;font-size:10pt">Hi Ala,
<div><br>
</div>
<div>that did not help. <span style="font-size:10pt">VDSM log tells me that the delta qcow2 file is missing:</span></div>
<div><span style="font-size:10pt"><br>
</span></div>
<div>
<div>Traceback (most recent call last):</div>
<div>  File &quot;/usr/share/vdsm/storage/task.<wbr>py&quot;, line 873, in _run</div>
<div>    return fn(*args, **kargs)</div>
<div>  File &quot;/usr/share/vdsm/logUtils.py&quot;, line 49, in wrapper</div>
<div>    res = f(*args, **kwargs)</div>
<div>  File &quot;/usr/share/vdsm/storage/hsm.<wbr>py&quot;, line 3162, in getVolumeInfo</div>
<div>    volUUID=volUUID).getInfo()</div>
<div>  File &quot;/usr/share/vdsm/storage/sd.<wbr>py&quot;, line 457, in produceVolume</div>
<div>    volUUID)</div>
<div>  File &quot;/usr/share/vdsm/storage/<wbr>fileVolume.py&quot;, line 58, in __init__</div>
<div>    volume.Volume.__init__(self, repoPath, sdUUID, imgUUID, volUUID)</div>
<div>  File &quot;/usr/share/vdsm/storage/<wbr>volume.py&quot;, line 181, in __init__</div>
<div>    self.validate()</div>
<div>  File &quot;/usr/share/vdsm/storage/<wbr>volume.py&quot;, line 194, in validate</div>
<div>    self.validateVolumePath()</div>
<div>  File &quot;/usr/share/vdsm/storage/<wbr>fileVolume.py&quot;, line 540, in validateVolumePath</div>
<div>    raise se.VolumeDoesNotExist(self.<wbr>volUUID)</div>
<div>VolumeDoesNotExist: Volume does not exist: (u&#39;c277351d-e2b1-4057-aafb-<wbr>55d4b607ebae&#39;,)</div>
<div style="font-size:10pt">...</div>
</div>
<div>
<div>
<div>Thread-196::ERROR::2016-10-09 19:31:07,037::utils::739::<wbr>root::(wrapper) Unhandled exception</div>
<div>Traceback (most recent call last):</div>
<div>  File &quot;/usr/lib/python2.7/site-<wbr>packages/vdsm/utils.py&quot;, line 736, in wrapper</div>
<div>    return f(*a, **kw)</div>
<div>  File &quot;/usr/share/vdsm/virt/vm.py&quot;, line 5264, in run</div>
<div>    self.update_base_size()</div>
<div>  File &quot;/usr/share/vdsm/virt/vm.py&quot;, line 5257, in update_base_size</div>
<div>    self.drive.imageID, topVolUUID)</div>
<div>  File &quot;/usr/share/vdsm/virt/vm.py&quot;, line 5191, in _getVolumeInfo</div>
<div>    (domainID, volumeID))</div>
<div>StorageUnavailableError: Unable to get volume info for domain 47202573-6e83-42fd-a274-<wbr>d11f05eca2dd volume c277351d-e2b1-4057-aafb-<wbr>55d4b607ebae</div>
</div>
<div><br>
</div>
<div>Do you have any idea?</div>
<div><br>
</div>
<div>Markus</div>
<div>________________________<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div>
<div>
<div><b style="font-size:small">Von:</b><span style="font-size:small"> Ala Hino [<a href="mailto:ahino@redhat.com" target="_blank">ahino@redhat.com</a>]</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<div style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>Gesendet:</b> Donnerstag, 6. Oktober 2016 12:29<br>
<b>An:</b> Markus Stockhausen<div><div class="h5"><br>
<b>Betreff:</b> Re: [ovirt-users] Cleanup illegal snapshot<br>
</div></div></font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">Indeed, retry live merge. There is no harm in retrying live merge. As mentioned, if the image deleted at storage side, retrying live merge should clean the engine side.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Oct 6, 2016 at 1:06 PM, Markus Stockhausen <span dir="ltr">
&lt;<a href="mailto:stockhausen@collogia.de" target="_blank">stockhausen@collogia.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Arial;color:#000000;font-size:10pt">Hi,
<div><br>
</div>
<div>we are on OVirt 4.0.4. As explained the situation is as follows:</div>
<div><br>
</div>
<div>- On Disk we have the base image and the delata qcow2 file</div>
<div>- Qemu runs only on the base image</div>
<div>- The snapshot in Qemu is tagged as illegal</div>
<div><br>
</div>
<div>So you say: &quot;Just retry a live merge and everything will cleanup.&quot;</div>
<div>Did I get it right?</div>
<div><br>
</div>
<div>Markus</div>
<div><br>
</div>
<div>------------------------------<wbr>-----------------<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div>
<div>
<div><b style="font-size:small">Von:</b><span style="font-size:small"> Ala Hino [<a href="mailto:ahino@redhat.com" target="_blank">ahino@redhat.com</a>]</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<div style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>Gesendet:</b> Donnerstag, 6. Oktober 2016 11:21<br>
<b>An:</b> Markus Stockhausen<br>
<b>Cc:</b> Ovirt Users; Nir Soffer; Adam Litke
<div>
<div><br>
<b>Betreff:</b> Re: [ovirt-users] Cleanup illegal snapshot<br>
</div>
</div>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">Hi Markus,
<div><br>
</div>
<div>What&#39;s the version that you are using?</div>
<div>In oVirt 3.6.6, illegal snapshots could be removed by retrying to live merge them again. Assuming the previous live merge of the snapshot successfully completed but the engine failed to get the result, the second live merge should do the necessary cleanups
 at the engine side. See <a href="https://bugzilla.redhat.com/1323629" target="_blank">https://bugzilla.redhat.co<wbr>m/1323629</a></div>
<div><br>
</div>
<div>Hope this helps,</div>
<div>Ala</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Oct 6, 2016 at 11:53 AM, Markus Stockhausen <span dir="ltr">
&lt;<a href="mailto:stockhausen@collogia.de" target="_blank">stockhausen@collogia.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ala,<br>
<br>
&gt; Von: Adam Litke [<a href="mailto:alitke@redhat.com" target="_blank">alitke@redhat.com</a>]<br>
&gt; Gesendet: Freitag, 30. September 2016 15:54<br>
&gt; An: Markus Stockhausen<br>
&gt; Cc: Ovirt Users; Ala Hino; Nir Soffer<br>
&gt; Betreff: Re: [ovirt-users] Cleanup illegal snapshot<br>
<span>&gt;<br>
&gt; On 30/09/16 05:47 +0000, Markus Stockhausen wrote:<br>
&gt; &gt;Hi,<br>
&gt; &gt;<br>
&gt; &gt;if a OVirt snapshot is illegal we might have 2 situations.<br>
&gt; &gt;<br>
&gt; &gt;1) qemu is still using it - lsof shows qemu access to the base raw and the<br>
&gt; &gt;delta qcow2 file. -&gt; E.g. a previous live merge failed. In the past we<br>
&gt; &gt;successfully solved that situation by setting the status of the delta image<br>
&gt; &gt;in the database to OK.<br>
&gt; &gt;<br>
&gt; &gt;2) qemu is no longer using it. lsof shows qemu access only to the the base<br>
&gt; &gt;raw file -&gt; E.g. a previous live merge succeded in qemu but Ovirt did not<br>
&gt; &gt;recognize.<br>
&gt; &gt;<br>
&gt; &gt;How to clean up the 2nd situation?<br>
&gt;<br>
&gt; It seems that you will have to first clean up the engine database to<br>
&gt; remove references to the snapshot that no longer exists.  Then you<br>
&gt; will need to remove the unused qcow2 volume.<br>
&gt;<br>
&gt; Unfortunately I cannot provide safe instructions for modifying the<br>
&gt; database but maybe Ala Hino (added to CC:) will be able to help with<br>
&gt; that.<br>
<br>
</span>Do you have some tip for me?<br>
<div>
<div><br>
&gt;<br>
&gt; One you have fixed the DB you should be able to delete the volume<br>
&gt; using a vdsm verb on the SPM host:<br>
&gt;<br>
&gt; # vdsClient -s 0 deleteVolume &lt;sdUUID&gt; &lt;spUUID&gt; &lt;imgUUID&gt; &lt;volUUID&gt;<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<div></div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
<div style="display:none"></div>
</div>
</div>
</div>
</div>

</blockquote></div><br></div>