<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style id="owaParaStyle" type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body aria-label="Message body" fpstyle="1" tabindex="0" dir="ltr">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:#000000; margin:0">
I was in the process of upgrading from 3.5.5 to 3.6.4 when it happened. I am sure there were version mismatches.<br>
<br>
I think what generated this issue was that I edited the cluster the host belonged to while it was going down for maintenance. This caused the tasks tab to show multiple tasks of the host going down for maintenance. They all eventually went into en error state
 and the task kept repeating itself until I rebooted the host.<br>
<div><br>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
Andrew Wippler | Sr. Systems Administrator | Lancaster Baptist Church | Dr. Paul Chappell, Pastor</div>
</div>
<br>
<div style="color:rgb(40,40,40)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Michal Skrivanek &lt;michal.skrivanek@redhat.com&gt;<br>
<b>Sent:</b> Friday, April 01, 2016 1:00 AM<br>
<b>To:</b> Andrew Wippler<br>
<b>Cc:</b> users@ovirt.org<br>
<b>Subject:</b> Re: [ovirt-users] Several VM's stuck in Migration</font>
<div>&nbsp;</div>
</div>
<div><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 31 Mar 2016, at 19:48, Andrew Wippler &lt;<a href="mailto:Andrew.Wippler@lancasterbaptist.org" class="">Andrew.Wippler@lancasterbaptist.org</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word">
<div class="">Mark,</div>
<div class=""><br class="">
</div>
<div class="">Hopefully you have resolved your stuck VM issue by now (nearly two months later). I came across this email from a google search. I was having the same exact problem with VMs being stuck in migration mode. The trigger to the VM migration issue
 was that I was setting my Host into maintenance mode. It migrated half of the active VMs successfully and the other half were stuck.</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Hi,</div>
It would be great to get logs from the system, or at least describe the specifics (anything special? gluster? old version?)</div>
<div>otherwise no one will ever be able to help;)</div>
<div><br class="">
</div>
<div>Thanks,</div>
<div>michal</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div class=""><br class="">
</div>
<div class="">There were two things I had to do to fix all of my stuck VMs:</div>
<div class="">1. I shut down the host (long enough for oVirt to fence it and notice that it was down). I then powered it on and &quot;confirmed host as rebooted.&quot; This reset the active VM count on the host and turned on my HA VMs on other hosts.</div>
<div class="">2. For the one VM that was still stuck after a host reboot, I had to login to postgres and set the status to 0 on that VM. This allowed me to shut down the migrating VM and start it back up. (I do not think I would have had to do this step if
 I did not alter the database entry for this VM before rebooting the host.)</div>
<div class=""><br class="">
</div>
<div class="">For step 2, I used the methods described here:&nbsp;<a href="https://access.redhat.com/discussions/688043" class="">https://access.redhat.com/discussions/688043</a>&nbsp;and as seen below:</div>
<div class="">ssh ovirt-engine</div>
<div class="">su postgres</div>
<div class="">psql</div>
<div class="">\connect engine</div>
<div class="">SELECT vm_guid status FROM vm_static WHERE vm_name='XXXX';</div>
<div class="">UPDATE vm_dynamic SET status=0 WHERE vm_guid='xxxxxxxx';</div>
<div class="">UPDATE vm_dynamic SET run_on_vds = null&nbsp; WHERE vm_guid='xxxxxxxx';</div>
<div class="">\q</div>
<div class="">(I was then able to shut down the VM)</div>
<div class=""><br class="">
</div>
<div class=""><span class="">-- <br class="">
Andrew Wippler &lt;<a href="" class="">andrew.wippler@lancasterbaptist.org&gt;</a>&nbsp;| Sr. Systems Administrator | Lancaster Baptist Church</span></div>
<div class=""><br class="">
</div>
</div>
_______________________________________________<br class="">
Users mailing list<br class="">
<a href="mailto:Users@ovirt.org" class="">Users@ovirt.org</a><br class="">
http://lists.ovirt.org/mailman/listinfo/users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>