<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Worked like a charm. Double thanks, for helping and for helping
      so fast!</p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Eduardo Mayoral Jimeno (<a class="moz-txt-link-abbreviated" href="mailto:emayoral@arsys.es">emayoral@arsys.es</a>)
Administrador de sistemas. Departamento de Plataformas. Arsys internet.
+34 941 620 145 ext. 5153</pre>
    <div class="moz-cite-prefix">On 06/02/18 12:25, Arik Hadas wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMCgCFFahRv=-qoMxt=nAPx2wJXSpb9h8H43wHodosyo+1Rrow@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>The problem you had is fixed already by <a
            href="https://gerrit.ovirt.org/#/c/86367/"
            moz-do-not-send="true">https://gerrit.ovirt.org/#/c/86367/</a>.</div>
        <div>I'm afraid you'll need to manually set the VM to Down in
          the database:</div>
        <div>update vm_dynamic set status=0 where vm_guid in  (select
          vm_guid from vm_static where vm_name='&lt;vm name&gt;')</div>
        <div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Tue, Feb 6, 2018 at 11:20 AM,
              Eduardo Mayoral <span dir="ltr">&lt;<a
                  href="mailto:emayoral@arsys.es" target="_blank"
                  moz-do-not-send="true">emayoral@arsys.es</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi,<br>
                <br>
                    Got a problem with oVirt 4.2<br>
                <br>
                While putting a Host in maintenance mode, an VM has
                failed to migrate.<br>
                The end state is that the Web UI shows the VM as
                "Migrating from".<br>
                <br>
                The VM is not running in any Host in the cluster.<br>
                <br>
                This is the relevant message in the
                /var/log/ovirt-engine/engine.<wbr>log<br>
                <br>
                2018-02-06 09:09:05,379Z INFO <br>
                [org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer]<br>
                (EE-ManagedThreadFactory-<wbr>engineScheduled-Thread-14)
                [] VM<br>
                'ab158ff3-a716-4655-9269-<wbr>11738cd53b05'(<wbr>repositorionuget)
                is running in<br>
                db and not running on VDS<br>
                '82b49615-9c65-4d8e-80e0-<wbr>f10089cb4225'(<a
                  href="http://llkh456.arsyslan.es" rel="noreferrer"
                  target="_blank" moz-do-not-send="true">llkh456.<wbr>arsyslan.es</a>)<br>
                2018-02-06 09:09:05,381Z ERROR<br>
                [org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring]<br>
                (EE-ManagedThreadFactory-<wbr>engineScheduled-Thread-14)
                [] Failed during<br>
                monitoring vm: ab158ff3-a716-4655-9269-<wbr>11738cd53b05
                , error is: {}:<br>
                java.lang.NullPointerException<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.<wbr>auditVmMigrationAbort(<wbr>VmAnalyzer.java:440)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.abortVmMigration(<wbr>VmAnalyzer.java:432)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.<wbr>proceedDisappearedVm(<wbr>VmAnalyzer.java:794)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.analyze(VmAnalyzer.<wbr>java:135)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring.lambda$<wbr>analyzeVms$1(VmsMonitoring.<wbr>java:136)<br>
                [vdsbroker.jar:]<br>
                        at java.util.ArrayList.forEach(<wbr>ArrayList.java:1255)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring.analyzeVms(<wbr>VmsMonitoring.java:131)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring.perform(<wbr>VmsMonitoring.java:94)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>PollVmStatsRefresher.poll(<wbr>PollVmStatsRefresher.java:43)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                java.util.concurrent.<wbr>Executors$RunnableAdapter.<wbr>call(Executors.java:511)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                java.util.concurrent.<wbr>FutureTask.runAndReset(<wbr>FutureTask.java:308)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                org.glassfish.enterprise.<wbr>concurrent.internal.<wbr>ManagedScheduledThreadPoolExec<wbr>utor$<wbr>ManagedScheduledFutureTask.<wbr>access$201(<wbr>ManagedScheduledThreadPoolExec<wbr>utor.java:383)<br>
                [javax.enterprise.concurrent-<wbr>1.0.jar:]<br>
                        at<br>
                org.glassfish.enterprise.<wbr>concurrent.internal.<wbr>ManagedScheduledThreadPoolExec<wbr>utor$<wbr>ManagedScheduledFutureTask.<wbr>run(<wbr>ManagedScheduledThreadPoolExec<wbr>utor.java:534)<br>
                [javax.enterprise.concurrent-<wbr>1.0.jar:]<br>
                        at<br>
                java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1149)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:624)<br>
                [rt.jar:1.8.0_151]<br>
                        at java.lang.Thread.run(Thread.<wbr>java:748)
                [rt.jar:1.8.0_151]<br>
                        at<br>
                org.glassfish.enterprise.<wbr>concurrent.<wbr>ManagedThreadFactoryImpl$<wbr>ManagedThread.run(<wbr>ManagedThreadFactoryImpl.java:<wbr>250)<br>
                [javax.enterprise.concurrent-<wbr>1.0.jar:]<br>
                        at<br>
                org.jboss.as.ee.concurrent.<wbr>service.<wbr>ElytronManagedThreadFactory$<wbr>ElytronManagedThread.run(<wbr>ElytronManagedThreadFactory.<wbr>java:78)<br>
                <br>
                2018-02-06 09:09:05,381Z ERROR<br>
                [org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring]<br>
                (EE-ManagedThreadFactory-<wbr>engineScheduled-Thread-14)
                [] Exception::<br>
                java.lang.NullPointerException<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.<wbr>auditVmMigrationAbort(<wbr>VmAnalyzer.java:440)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.abortVmMigration(<wbr>VmAnalyzer.java:432)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.<wbr>proceedDisappearedVm(<wbr>VmAnalyzer.java:794)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmAnalyzer.analyze(VmAnalyzer.<wbr>java:135)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring.lambda$<wbr>analyzeVms$1(VmsMonitoring.<wbr>java:136)<br>
                [vdsbroker.jar:]<br>
                        at java.util.ArrayList.forEach(<wbr>ArrayList.java:1255)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring.analyzeVms(<wbr>VmsMonitoring.java:131)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>VmsMonitoring.perform(<wbr>VmsMonitoring.java:94)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                org.ovirt.engine.core.<wbr>vdsbroker.monitoring.<wbr>PollVmStatsRefresher.poll(<wbr>PollVmStatsRefresher.java:43)<br>
                [vdsbroker.jar:]<br>
                        at<br>
                java.util.concurrent.<wbr>Executors$RunnableAdapter.<wbr>call(Executors.java:511)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                java.util.concurrent.<wbr>FutureTask.runAndReset(<wbr>FutureTask.java:308)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                org.glassfish.enterprise.<wbr>concurrent.internal.<wbr>ManagedScheduledThreadPoolExec<wbr>utor$<wbr>ManagedScheduledFutureTask.<wbr>access$201(<wbr>ManagedScheduledThreadPoolExec<wbr>utor.java:383)<br>
                [javax.enterprise.concurrent-<wbr>1.0.jar:]<br>
                        at<br>
                org.glassfish.enterprise.<wbr>concurrent.internal.<wbr>ManagedScheduledThreadPoolExec<wbr>utor$<wbr>ManagedScheduledFutureTask.<wbr>run(<wbr>ManagedScheduledThreadPoolExec<wbr>utor.java:534)<br>
                [javax.enterprise.concurrent-<wbr>1.0.jar:]<br>
                        at<br>
                java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1149)<br>
                [rt.jar:1.8.0_151]<br>
                        at<br>
                java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:624)<br>
                [rt.jar:1.8.0_151]<br>
                        at java.lang.Thread.run(Thread.<wbr>java:748)
                [rt.jar:1.8.0_151]<br>
                        at<br>
                org.glassfish.enterprise.<wbr>concurrent.<wbr>ManagedThreadFactoryImpl$<wbr>ManagedThread.run(<wbr>ManagedThreadFactoryImpl.java:<wbr>250)<br>
                [javax.enterprise.concurrent-<wbr>1.0.jar:]<br>
                        at<br>
                org.jboss.as.ee.concurrent.<wbr>service.<wbr>ElytronManagedThreadFactory$<wbr>ElytronManagedThread.run(<wbr>ElytronManagedThreadFactory.<wbr>java:78)<br>
                <br>
                I already tried canceling the migration, powering off
                the VM, restarting<br>
                the engine service and restarting the vdsm on the host
                which is supposed<br>
                to have that VM. No success so far. unlock_entity.sh
                shows no locked<br>
                entities.<br>
                <br>
                Can somebody help on how to recover from this?<br>
                <br>
                Thanks!<br>
                <span class="gmail-HOEnZb"><font color="#888888"><br>
                    <br>
                    --<br>
                    Eduardo Mayoral Jimeno (<a
                      href="mailto:emayoral@arsys.es"
                      moz-do-not-send="true">emayoral@arsys.es</a>)<br>
                    Administrador de sistemas. Departamento de
                    Plataformas. Arsys internet.<br>
                    <a href="tel:%2B34%20941%20620%20145%20ext.%205153"
                      value="+34941620145" moz-do-not-send="true">+34
                      941 620 145 ext. 5153</a><br>
                    <br>
                    ______________________________<wbr>_________________<br>
                    Users mailing list<br>
                    <a href="mailto:Users@ovirt.org"
                      moz-do-not-send="true">Users@ovirt.org</a><br>
                    <a
                      href="http://lists.ovirt.org/mailman/listinfo/users"
                      rel="noreferrer" target="_blank"
                      moz-do-not-send="true">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
                  </font></span></blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>