<div dir="ltr"><div><div><div><div>Hi Giulio,<br><br></div>Indeed it seems that there's an inconsistency between the storage and the database.<br></div>Somehow the template's disk was removed from the storage. Your logs don't tell how and when.<br><br></div>This is what needs to be done in order to get rid of the stale entries - run in the database:<br><br>Delete from vm_device where device_id = '6949d47a-0d38-468e-ad4e-670372841174';<br>Delete from images where image_group_id = '6949d47a-0d38-468e-ad4e-670372841174';<br>Delete from base_disks where disk_id = '6949d47a-0d38-468e-ad4e-670372841174';<br>Delete from vm_static where vm_guid = '6ec76d42-98a6-4094-a76c-af1b639c5b30';<br><br><br></div>If it happens again, please file a BZ with the full logs of engine and vdsm, so we can investigate this issue.<br><div><div><div><div><span class="im"></span></div></div></div></div><div class="gmail_extra">Feel free to ask anything if you got further questions.<br><br></div><div class="gmail_extra">Regards<br></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Idan<br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, May 2, 2016 at 2:36 PM, Giulio Casella <span dir="ltr"><<a href="mailto:giulio@di.unimi.it" target="_blank">giulio@di.unimi.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Idan,<br>
you can find attached some snippet of my logs (vdsm.log from SPM host and engine.log from manager).<br>
Anyway I think logs are clear: there's no template on disk, only on engine database.<br>
<br>
My setup is composed of 3 datacenters (with clusters of 4, 4, and 6 hosts respectively). I have about a hundred templates, and about 1500 virtual machines.<br>
<br>
The step to reproduce is quite simple: in admin portal right click on the "damaged" template, remove. Other templates deletion work fine.<br>
<br>
Thanks,<br>
Giulio<span class=""><br>
<br>
Il 01/05/2016 08:37, Idan Shaby ha scritto:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi,<br>
<br>
Can you please attach the engine and vdsm logs?<br>
Also, can you describe your setup and the steps that reproduced this error?<br>
<br>
<br>
Thanks,<br>
Idan<br>
<br>
On Wed, Apr 27, 2016 at 1:47 PM, Giulio Casella <<a href="mailto:giulio@di.unimi.it" target="_blank">giulio@di.unimi.it</a><br></span><span class="">
<mailto:<a href="mailto:giulio@di.unimi.it" target="_blank">giulio@di.unimi.it</a>>> wrote:<br>
<br>
Hi all,<br>
I have a problem deleting a template from admin portal.<br>
In file /var/log/vdsm/vdsm.log (on SPM hypervisor) I got:<br>
<br>
jsonrpc.Executor/4::ERROR::2016-04-27<br>
10:19:57,122::hsm::1518::Storage.HSM::(deleteImage) Empty or not<br>
found image <disk uuid> in SD <storage domain UUID> [...]<br>
<br>
Looking in the (data) storage domain the disk with that UUID doesn't<br>
exists.<br>
It seems I reached an inconsistent state between engine database and<br>
images on disk.<br>
<br>
Is there a (safe) way to rebuild a consistent situation? Maybe<br>
deleting entries from database?<br>
<br>
My setup is based:<br>
manager RHEV 3.5.8-0.1.el6ev<br>
hypervisors: RHEV Hypervisor - 7.2 - 20160328.0.el7ev<br>
<br>
<br>
Thanx in advance,<br>
Giulio<br>
<br>
_______________________________________________<br>
Users mailing list<br></span>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Giulio Casella giulio at <a href="http://di.unimi.it" rel="noreferrer" target="_blank">di.unimi.it</a><br>
System and network manager<br>
Computer Science Dept. - University of Milano<br>
</font></span></blockquote></div><br></div></div>