<div dir="ltr">When ovirt-ha-agent checks the status of the engine VM we get:<div><pre style="color:rgb(0,0,0)">2017-02-21 22:21:14,738-0500 ERROR (jsonrpc/2) [api] FINISH getStats error=Virtual machine does not exist: {&#39;vmId&#39;: u&#39;2ccc0ef0-cc31-45b8-8e91-a78fa4cad671&#39;} (api:69)
Traceback (most recent call last):
  File &quot;/usr/lib/python2.7/site-packages/vdsm/common/api.py&quot;, line 67, in method
    ret = func(*args, **kwargs)
  File &quot;/usr/share/vdsm/API.py&quot;, line 335, in getStats
    vm = self.vm
  File &quot;/usr/share/vdsm/API.py&quot;, line 130, in vm
    raise exception.NoSuchVM(vmId=self._UUID)
NoSuchVM: Virtual machine does not exist: {&#39;vmId&#39;: u&#39;2ccc0ef0-cc31-45b8-8e91-a78fa4cad671&#39;}</pre><pre style="color:rgb(0,0,0)"><br></pre><pre>While in ovirt-ha-agent logs we have:<pre style="color:rgb(0,0,0)"><pre>MainThread::INFO::2017-02-21 22:21:18,583::hosted_engine::453::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state UnknownLocalVmState (score: 3400)</pre><pre>...</pre></pre><pre style="color:rgb(0,0,0)">MainThread::INFO::2017-02-21 22:21:31,199::state_decorators::25::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(check) Unknown local engine vm status no actions taken</pre></pre>Probably it&#39;s a bug or a regression somewhere on master.</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 1:02 PM, Sandro Bonazzola <span dir="ltr">&lt;<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Adding Lev</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-h5">On Wed, Feb 22, 2017 at 12:59 PM, Sahina Bose <span dir="ltr">&lt;<a href="mailto:sabose@redhat.com" target="_blank">sabose@redhat.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><div dir="ltr"><pre>Hi all,<br><br>On the HC setup, the HE VM is not restarted.<br>The agent.log has <br>MainThread::INFO::2017-02-21 22:09:58,022::state_machine::1<wbr>69::ovirt_hosted_engine_ha.age<wbr>nt.hosted_engine.HostedEngine:<wbr>:(refresh) Global metadata: {}
MainThread::INFO::2017-02-21 22:09:58,023::state_machine::1<wbr>77::ovirt_hosted_engine_ha.age<wbr>nt.hosted_engine.HostedEngine:<wbr>:(refresh) Local (id 1): {&#39;engine-health&#39;: {&#39;reason&#39;: &#39;failed to getVmStats&#39;, &#39;health&#39;: &#39;unknown&#39;, &#39;vm&#39;: &#39;unknown&#39;, &#39;detail&#39;: &#39;unknown&#39;}, &#39;bridge&#39;: True, &#39;mem-free&#39;: 4079.0, &#39;maintenance&#39;: False, &#39;cpu-load&#39;: 0.0491, &#39;gateway&#39;: True}<br>...<br>MainThread::INFO::2017-02-21 22:10:29,219::state_decorators<wbr>::25::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.HostedEngi<wbr>ne::(check) Unknown local engine vm status no actions taken
MainThread::INFO::2017-02-21 22:10:29,219::brokerlink::111:<wbr>:<a href="http://ovirt_hosted_engine_ha.lib.br">ovirt_hosted_engine_ha.lib.br</a><wbr>okerlink.BrokerLink::(notify) Trying: notify time=1487733029.22 type=state_transition detail=ReinitializeFSM-Unknown<wbr>LocalVmState hostname=&#39;lago-hc-basic-suite-<wbr>master-host0&#39;
MainThread::INFO::2017-02-21 22:10:29,317::brokerlink::121:<wbr>:<a href="http://ovirt_hosted_engine_ha.lib.br">ovirt_hosted_engine_ha.lib.br</a><wbr>okerlink.BrokerLink::(notify) Success, was notification of state_transition (ReinitializeFSM-UnknownLocalV<wbr>mState) sent? ignored<br></pre><pre>and the vdsm.log <br><br>2017-02-21 22:09:11,962-0500 INFO  (libvirt/events) [virt.vm] (vmId=&#39;2ccc0ef0-cc31-45b8-8e91<wbr>-a78fa4cad671&#39;) Changed state to Down: User shut down from within the guest (code=7) (vm:1269)
2017-02-21 22:09:11,962-0500 INFO  (libvirt/events) [virt.vm] (vmId=&#39;2ccc0ef0-cc31-45b8-8e91<wbr>-a78fa4cad671&#39;) Stopping connection (guestagent:429)<br><br>2017-02-21 22:09:29,727-0500 ERROR (jsonrpc/4) [api] FINISH getStats error=Virtual machine does not exist: {&#39;vmId&#39;: u&#39;2ccc0ef0-cc31-45b8-8e91-a78f<wbr>a4cad671&#39;} (api:69)
Traceback (most recent call last):
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/common/api.py&quot;, line 67, in method
    ret = func(*args, **kwargs)
  File &quot;/usr/share/vdsm/API.py&quot;, line 335, in getStats
    vm = self.vm
  File &quot;/usr/share/vdsm/API.py&quot;, line 130, in vm
    raise exception.NoSuchVM(vmId=self._<wbr>UUID)
NoSuchVM: Virtual machine does not exist: {&#39;vmId&#39;: u&#39;2ccc0ef0-cc31-45b8-8e91-a78f<wbr>a4cad671&#39;}<br><br><br></pre><pre>What should I be looking for to identify the issue?<br><br></pre><pre>The logs are at <a href="http://jenkins.ovirt.org/job/ovirt_master_hc-system-tests/lastCompletedBuild/artifact/exported-artifacts/test_logs/hc-basic-suite-master/post-002_bootstrap.py/lago-hc-basic-suite-master-host0" target="_blank">http://jenkins.ovirt.org/job/o<wbr>virt_master_hc-system-tests/la<wbr>stCompletedBuild/artifact/expo<wbr>rted-artifacts/test_logs/hc-<wbr>basic-suite-master/post-002_<wbr>bootstrap.py/lago-hc-basic-<wbr>suite-master-host0</a><br><br></pre><pre>thanks<span class="gmail-m_-511095684978464768HOEnZb"><font color="#888888"><br></font></span></pre><span class="gmail-m_-511095684978464768HOEnZb"><font color="#888888"><pre>sahina<br></pre></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a><span class="gmail-HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="gmail-HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-511095684978464768gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sandro Bonazzola<br>Better technology. Faster innovation. Powered by community collaboration.<br>See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div></div></div>