<div dir="ltr"><div><div>Those ids are hidden in the UI and you can reveal them from the db<br><br></div>```sql<br></div>select vds_spm_id,vds_name from vds_spm_id_map map,vds_static static where map.vds_id = static.vds_id ;<br>```<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 September 2016 at 11:52, Davide Ferrari <span dir="ltr"><<a href="mailto:davide@billymob.com" target="_blank">davide@billymob.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Mmmh, how can I check this? And how can I cahnge the id from the engine? IDs are not even shown in the GUI for example<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-09-19 10:35 GMT+02:00 Roy Golan <span dir="ltr"><<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm suspect the host-id is out of sync in the engine now. changing the host-id locally isn't supported. The engine is the only source of id assignment. <br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 19 September 2016 at 00:21, Davide Ferrari <span dir="ltr"><<a href="mailto:davide@billymob.com" target="_blank">davide@billymob.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Oh, thanks! You put me on the right way! Now it works:</div><div>Steps that I did:</div><div>- reinstall + deploy vm03</div><div>- manually set from maintenance to none on vm03</div><div>- reinstall + undeploy vm04 (I left it deployed again last time, trying to remove it)</div><div><br></div><div>Then I found the problem: vm03 hosted-engine conf (/etc/ovirt-hosted-engine/host<wbr>ed-engine.conf) had host_id set to 4 which conflicted with vm04 host_id. So I changed it to 2 (the only one free), restarted ovirt-ha-agent (and broker just to be sure) and it worked! Now from vm-status I see vm01,02 and 03 with 3400 as priority and I can migrate the HE vm to any of them! </div><div><br></div><div>Thanks a lot for your kind help, Roy!</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-18 22:00 GMT+02:00 Roy Golan <span dir="ltr"><<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Can you share the deploy logs of vm03? /var/log/ovirt-engine/host-dep<wbr>loy/<br></div>Is there an /etc/ovirt-hosted-engine/hoste<wbr>d-engine.conf at all?<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2016 at 17:28, Davide Ferrari <span dir="ltr"><<a href="mailto:davide@billymob.com" target="_blank">davide@billymob.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hello Roy, I forgot to mention that I already reinstalled (several times) vm03 from the gui with the deploy option checked, but there's no way it appears there. For the record vm04 was the first host deployed (from cli) after the initial vm01 installation, then vm02 and then 03.</p><div><div>
<div class="gmail_extra"><br><div class="gmail_quote">On Sep 18, 2016 11:06, "Roy Golan" <<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">vm03 is missing here from the status. Can you reinstall it from UI (if you added the host vm03 then just go to Management menu and click reinstall, choose 'Deploy' Option) - After its done, when the host is activated you'll need to manually switch the host out of maintenence (we have a bug on it - solved in master already)<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2016 at 10:45, Davide Ferrari <span dir="ltr"><<a href="mailto:davide@billymob.com" target="_blank">davide@billymob.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello <div><br></div><div>Still playing a bit with oVirt, my cluster is ovirt+gluster with a replica 3 glusterfs for the engine (on vm01, vm02 and vm03) and 4 hosts for the data glusterfs and running virtual machines (vm01, vm02, vm03 and vm04). Now, by mistake, I deployed hosted-engine on vm04 but I don't want to have the engine on a machine without local data + it's not working correctly (weight 0 and marked as in maintenance). Now, I've already tried to reinstall it from the the GUI marking the "Undeploy" check, reinstall vm03 marking the "deploy" check but nothing seems to work. Here it is the hosted-engine --vm-status output from vm04. What can I do to deploy correctly the hosted engine on vm03?</div><div><br></div><div><div>--== Host 1 status ==--</div><div><br></div><div>Status up-to-date : True</div><div>Hostname : vm01.mydomain.tld</div><div>Host ID : 1</div><div>Engine status : {"reason": "vm not running on this host", "health": "bad", "vm": "down", "detail": "unknown"}</div><div>Score : 3400</div><div>stopped : False</div><div>Local maintenance : False</div><div>crc32 : fee2f7d8</div><div>Host timestamp : 48911</div><div>Extra metadata (valid at timestamp):</div><div><span style="white-space:pre-wrap">        </span>metadata_parse_version=1</div><div><span style="white-space:pre-wrap">        </span>metadata_feature_version=1</div><div><span style="white-space:pre-wrap">        </span>timestamp=48911 (Sat Sep 17 07:57:02 2016)</div><div><span style="white-space:pre-wrap">        </span>host-id=1</div><div><span style="white-space:pre-wrap">        </span>score=3400</div><div><span style="white-space:pre-wrap">        </span>maintenance=False</div><div><span style="white-space:pre-wrap">        </span>state=EngineDown</div><div><span style="white-space:pre-wrap">        </span>stopped=False</div><div><br></div><div><br></div><div>--== Host 3 status ==--</div><div><br></div><div>Status up-to-date : True</div><div>Hostname : vm02.mydomain.tld</div><div>Host ID : 3</div><div>Engine status : {"health": "good", "vm": "up", "detail": "up"}</div><div>Score : 3400</div><div>stopped : False</div><div>Local maintenance : False</div><div>crc32 : 9138d24e</div><div>Host timestamp : 48907</div><div>Extra metadata (valid at timestamp):</div><div><span style="white-space:pre-wrap">        </span>metadata_parse_version=1</div><div><span style="white-space:pre-wrap">        </span>metadata_feature_version=1</div><div><span style="white-space:pre-wrap">        </span>timestamp=48907 (Sat Sep 17 07:57:00 2016)</div><div><span style="white-space:pre-wrap">        </span>host-id=3</div><div><span style="white-space:pre-wrap">        </span>score=3400</div><div><span style="white-space:pre-wrap">        </span>maintenance=False</div><div><span style="white-space:pre-wrap">        </span>state=EngineUp</div><div><span style="white-space:pre-wrap">        </span>stopped=False</div><div><br></div><div><br></div><div>--== Host 4 status ==--</div><div><br></div><div>Status up-to-date : False</div><div>Hostname : vm04.mydomain.tld</div><div>Host ID : 4</div><div>Engine status : unknown stale-data</div><div>Score : 0</div><div>stopped : False</div><div>Local maintenance : True</div><div>crc32 : 221d262e</div><div>Host timestamp : 17958</div><div>Extra metadata (valid at timestamp):</div><div><span style="white-space:pre-wrap">        </span>metadata_parse_version=1</div><div><span style="white-space:pre-wrap">        </span>metadata_feature_version=1</div><div><span style="white-space:pre-wrap">        </span>timestamp=17958 (Fri Sep 16 23:19:32 2016)</div><div><span style="white-space:pre-wrap">        </span>host-id=4</div><div><span style="white-space:pre-wrap">        </span>score=0</div><div><span style="white-space:pre-wrap">        </span>maintenance=True</div><div><span style="white-space:pre-wrap">        </span>state=LocalMaintenance</div><div><span style="white-space:pre-wrap">        </span>stopped=False</div></div><span><font color="#888888"><div><br></div><div><div><br></div>-- <br><div><div dir="ltr"><div>Davide Ferrari<br></div>Senior Systems Engineer<br></div></div>
</div></font></span></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Davide Ferrari<br></div>Senior Systems Engineer<br></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Davide Ferrari<br></div>Senior Systems Engineer<br></div></div>
</div>
</div></div></blockquote></div><br></div>