<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Dear Simone,<br>
      <br>
      thanks for the help, I already have noticed, that there is a
      mismatch between SPM IDs and the hosts.<br>
      From my knowledge this may be our fault.<br>
      <br>
       vds_name | vds_spm_id<br>
       oVirt4   |          3<br>
       oVirt2   |          4<br>
       oVirt6   |          6<br>
       oVirt5   |          5<br>
       oVirt1   |          1<br>
       oVirt3   |          2<br>
      <br>
      oVirt3 was re-installed using the node ng image - and was assigned
      id 2 that was available at that time (taken into account this
      database query).<br>
      It was not available in fact because of the host ovirt2 having the
      host_id=2 entry in the configuration on the host and the sanlock
      having locked the appropriate space.<br>
      <br>
      I can't remember where this mismatch came from but I assume that
      some time ago someone maybe manually changed the entry on oVirt2
      host in order to match with the hostname (oVirtX -&gt; Host id X).<br>
      Thus I think it is not a bug at the moment.<br>
      <br>
      But that leads me to the next question:<br>
      <br>
      Is there a manual way to align numbers in the hostnames with the
      SPM IDs? (oVirt4 should be spm id 4)<br>
      <br>
      Does this work? Update the database, change the entry in
      hosted-engine.conf and then reboot the node?<br>
      <br>
      Thanks &amp; best regards,<br>
      Thomas<br>
      <br>
      <br>
    </div>
    <blockquote type="cite"
cite="mid:CAN8-ONoCNj8gth+sxHdgXnYOEizwtcUXLocaBddo+Z+jJdHUKA@mail.gmail.com">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Mon, Apr 23, 2018 at 1:04 PM,
            Martin Sivak <span dir="ltr">&lt;<a
                href="mailto:msivak@redhat.com" target="_blank"
                moz-do-not-send="true">msivak@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">Hello,<br>
              <br>
              the ID should be coming from the SPM ID of the host as
              assigned by the<br>
              engine and duplicates should not be happening indeed.<br>
              <br>
              Can you please tell us what version of engine you have and
              how was<br>
              first hosted engine node deployed? We recently changed the
              default<br>
              deployment method (4.2.2 in fact) and we would like to
              know whether<br>
              this might be related to that change or not.<br>
              <br>
              Simone, do you know how to debug this? Are there logs we
              could use to<br>
              check the behavior? The host-deploy logs maybe?<br>
            </blockquote>
            <div><br>
            </div>
            <div>Thomas,</div>
            <div>can you please share the output of </div>
            <div>  sudo -u postgres scl enable rh-postgresql95 -- psql
              -d engine -c "select vds_id, vds_name, vds_spm_id from
              vds"<br>
            </div>
            <div>executed on the engine VM</div>
            <div><br>
            </div>
            <div>and the content of /var/log/ovirt-engine/host-deploy
              (still from the engine VM)?</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <br>
              Best regards<br>
              <br>
              --<br>
              Martin Sivak<br>
              SLA / oVirt<br>
              <div>
                <div class="gmail-h5"><br>
                  On Mon, Apr 23, 2018 at 12:54 PM, Thomas Klute &lt;<a
                    href="mailto:klute@ingenit.com"
                    moz-do-not-send="true">klute@ingenit.com</a>&gt;
                  wrote:<br>
                  &gt; Dear oVirt Users,<br>
                  &gt;<br>
                  &gt; we installed a third ovirt node using the ovirt
                  node ng image (4.2.2), and<br>
                  &gt; added that node using the web interface of the
                  hosted engine:<br>
                  &gt;<br>
                  &gt; Compute-&gt;Hosts-&gt;New - including the Hosted
                  engine option "Choose hosted<br>
                  &gt; engine deployment action" set to "Deploy"<br>
                  &gt;<br>
                  &gt; After that we found out, that on the new node the
                  host_id entry was causing<br>
                  &gt; problems. In<br>
                  &gt;<br>
                  &gt; /etc/ovirt-hosted-engine/<wbr>hosted-engine.conf<br>
                  &gt;<br>
                  &gt; we found the entry<br>
                  &gt;<br>
                  &gt; ...<br>
                  &gt; host_id=2<br>
                  &gt; ...<br>
                  &gt;<br>
                  &gt; But that host id already exists and was alive
                  during deployment process.<br>
                  &gt; So my questions are:<br>
                  &gt;<br>
                  &gt; How is the host id chosen (when adding a new host
                  via GUI)?<br>
                  &gt; Is there an option to preselect the host id in
                  the GUI for a new node?<br>
                  &gt; How can we prevent further duplicate host ids?<br>
                  &gt;<br>
                  &gt; Thanks and best regards,<br>
                  &gt; Thomas<br>
                  &gt;<br>
                  &gt;<br>
                  &gt; --<br>
                  &gt; ______________________________<wbr>______________________________<wbr>____________<br>
                  &gt;<br>
                  &gt;  Dipl.-Inform. Thomas Klute                     
                       <a href="mailto:klute@ingenit.com"
                    moz-do-not-send="true">klute@ingenit.com</a><br>
                  &gt;  Geschäftsführer / CEO<br>
                  &gt;  ------------------------------<wbr>------------------------------<wbr>----------<br>
                  &gt;  ingenit GmbH &amp; Co. KG                     
                   Tel. +49 (0)231 58 698-120<br>
                  &gt;  Emil-Figge-Strasse 76-80                    Fax.
                  +49 (0)231 58 698-121<br>
                  &gt;  D-44227 Dortmund                               
                         <a href="http://www.ingenit.com"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">www.ingenit.com</a><br>
                  &gt;<br>
                  &gt;  Registergericht: Amtsgericht Dortmund, HRA 13
                  914<br>
                  &gt;  Gesellschafter : Thomas Klute, Marc-Christian
                  Schröer<br>
                  &gt; ______________________________<wbr>______________________________<wbr>____________<br>
                  &gt;<br>
                  &gt;<br>
                </div>
              </div>
              &gt; ______________________________<wbr>_________________<br>
              &gt; Users mailing list<br>
              &gt; <a href="mailto:Users@ovirt.org"
                moz-do-not-send="true">Users@ovirt.org</a><br>
              &gt; <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>
              &gt;<br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">Sollten noch Fragen offen sein, stehen wir Ihnen natürlich jederzeit
gerne zur Verfügung.

Mit Grüßen aus Dortmund,
 Thomas Klute

-- 
________________________________________________________________________

 Dipl.-Inform. Thomas Klute                           <a class="moz-txt-link-abbreviated" href="mailto:klute@ingenit.com">klute@ingenit.com</a>
 Geschäftsführer / CEO
 ----------------------------------------------------------------------
 ingenit GmbH &amp; Co. KG                       Tel. +49 (0)231 58 698-120
 Emil-Figge-Strasse 76-80                    Fax. +49 (0)231 58 698-121
 D-44227 Dortmund                                       <a class="moz-txt-link-abbreviated" href="http://www.ingenit.com">www.ingenit.com</a>

 Registergericht: Amtsgericht Dortmund, HRA 13 914
 Gesellschafter : Thomas Klute, Marc-Christian Schröer
________________________________________________________________________
</pre>
  </body>
</html>