<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 08/08/2016 10:22 AM, Simone
      Tiraboschi wrote:<br>
    </div>
    <blockquote
cite="mid:CAN8-ONrUBenDJ4GRd1HVjxqXkOPuRG8YdoW9yWm7J0TiJ26-KA@mail.gmail.com"
      type="cite">
      <pre wrap="">On Sun, Aug 7, 2016 at 3:42 PM, Arsène Gschwind
<a class="moz-txt-link-rfc2396E" href="mailto:arsene.gschwind@unibas.ch">&lt;arsene.gschwind@unibas.ch&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

I have an oVirt setup with 2 server using hosted-engine, both server
resgistered properly the hosted-engine using :
# hosted-engine --deploy

but for some reason the second isn't recognized as a host for hosted-engine
and I'm not able to migrate the hosted-engine.
The error I get when trying to migrate:

Cannot migrate VM. There is no host that satisfies current scheduling
constraints. See below for details:
The host xxxxxx did not satisfy internal filter HA because it is not a
Hosted Engine host..

I've tried to redeploy the hosted-engine but this will fail since the host
already exists in the management DB.
I've tried to redeploy the host using the GUI when editing the Host and set
DEPLOY at Hosted Engine but in that case the Event just says the
configuration was updated but nothing happens.

Is there a way to check if the host is registered as hosted-engine host?
</pre>
      </blockquote>
      <pre wrap="">
Can you please execute hosted-engine --vm-status on the problematic host?</pre>
    </blockquote>
    Here's the result from the host where hosted engine is running:<br>
    <br>
    <font face="Courier New, Courier, monospace">Status
      up-to-date                  : True<br>
      Hostname                           : xxxxxx<br>
      Host ID                            : 1<br>
      Engine status                      : {"health": "good", "vm":
      "up", "detail": "up"}<br>
      Score                              : 3400<br>
      stopped                            : False<br>
      Local maintenance                  : False<br>
      crc32                              : 3c9dd013<br>
      Host timestamp                     : 82115<br>
      Extra metadata (valid at timestamp):<br>
          metadata_parse_version=1<br>
          metadata_feature_version=1<br>
          timestamp=82115 (Mon Aug  8 10:44:12 2016)<br>
          host-id=1<br>
          score=3400<br>
          maintenance=False<br>
          state=EngineUp<br>
          stopped=False</font><br>
    <br>
    And this is from the problematic host:<br>
    <br>
    <font face="Courier New, Courier, monospace">Status
      up-to-date                  : False<br>
      Hostname                           : xxxxxxxx<br>
      Host ID                            : 1<br>
      Engine status                      : unknown stale-data<br>
      Score                              : 3400<br>
      stopped                            : False<br>
      Local maintenance                  : False<br>
      crc32                              : 6c959fce<br>
      Host timestamp                     : 82149<br>
      Extra metadata (valid at timestamp):<br>
          metadata_parse_version=1<br>
          metadata_feature_version=1<br>
          timestamp=82149 (Mon Aug  8 10:44:45 2016)<br>
          host-id=1<br>
          score=3400<br>
          maintenance=False<br>
          state=EngineUp<br>
          stopped=False</font><br>
    <br>
    <blockquote
cite="mid:CAN8-ONrUBenDJ4GRd1HVjxqXkOPuRG8YdoW9yWm7J0TiJ26-KA@mail.gmail.com"
      type="cite">
      <pre wrap="">

Do you see any hosted-engine score for it in the engine?</pre>
    </blockquote>
    It seems the score is the same on both host<br>
    <br>
    Thanks,<br>
    Arsène<br>
    <blockquote
cite="mid:CAN8-ONrUBenDJ4GRd1HVjxqXkOPuRG8YdoW9yWm7J0TiJ26-KA@mail.gmail.com"
      type="cite">
      <pre wrap="">

</pre>
      <blockquote type="cite">
        <pre wrap="">How could I register it correctly?

Let me know if you need any logs.
Thanks for any hint.

Regards,
Arsène


_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>

</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>