<div dir="ltr">Thanks Artem, all right.<br>Krzysztof, can you please attach or send me your host-deploy logs for this additional host from your engine VM to let me try understanding how it got a wrong ID?<div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 2, 2018 at 3:52 PM, Artem Tambovskiy <span dir="ltr">&lt;<a href="mailto:artem.tambovskiy@gmail.com" target="_blank">artem.tambovskiy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto">Hello Krzysztof,<div dir="auto"><br></div><div dir="auto">As I can see both hosts have the same host_id=1, which causing conflict.</div><div dir="auto"><br></div><div dir="auto">You need this this manually on the newly deployed host and restart ovirt-ha-agent.</div><div dir="auto">You may run following command on engine VM in order to find correct host_id values for your hosts.</div><div dir="auto"><br></div><div dir="auto">sudo -u postgres psql -d engine -c &#39;select vds_name, vds_spm_id from vds&#39;</div><div dir="auto"><br></div><div dir="auto">Once you fixed host_id and restarted agents, i would advise to check sanlock client status in order to see that there are no conflicts and hosts using correct host_id values.</div></div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Artem</div><br><div class="gmail_quote"><div dir="ltr">пт, 2 мар. 2018 г., 17:10 Krzysztof Wajda &lt;<a href="mailto:vajdovski@gmail.com" rel="noreferrer" target="_blank">vajdovski@gmail.com</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I have an issue with Hosted Engine when I try to deploy via gui on another host. There is no errors after deploy but in GUI I see only &quot;Not active&quot; status HE, and hosted-engine --status shows only 1 node (on both nodes same output). In hosted-engine.conf I see that host_id is the same as it is on primary host with HE !? Issue looks quite similar like in </div><div><br></div><div><a href="http://lists.ovirt.org/pipermail/users/2018-February/086932.html" rel="noreferrer noreferrer" target="_blank">http://lists.ovirt.org/<wbr>pipermail/users/2018-February/<wbr>086932.html</a> </div><div><br></div><div>Here is config file on newly deployed node :</div><div><br></div><div><div>ca_cert=/etc/pki/vdsm/libvirt-<wbr>spice/ca-cert.pem</div><div>gateway=192.168.8.1</div><div>iqn=</div><div>conf_image_UUID=f2813205-4b0c-<wbr>45f3-a9cb-3748f61d2194</div><div>ca_cert=/etc/pki/vdsm/libvirt-<wbr>spice/ca-cert.pem</div><div>sdUUID=7e7a275c-6939-4f79-<wbr>85f6-d695209951ea</div><div>connectionUUID=81a2f9a3-2efe-<wbr>448f-b305-e22543068044</div><div>conf_volume_UUID=d6b7e25c-<wbr>9912-47ff-b104-9d424b9f34b8</div><div>user=</div><div>host_id=1</div><div>bridge=ovirtmgmt</div><div>metadata_image_UUID=fe95f22e-<wbr>b468-4adf-a754-21d419ae3e67</div><div>spUUID=00000000-0000-0000-<wbr>0000-000000000000</div><div>mnt_options=</div><div>fqdn=<a href="http://dev-ovirtengine0.somedomain.it" rel="noreferrer noreferrer" target="_blank">dev-ovirtengine0.<wbr>somedomain.it</a></div><div>portal=</div><div>vm_disk_id=febde231-92cc-4599-<wbr>8f55-816f63132739</div><div>metadata_volume_UUID=7ebaf268-<wbr>15ec-4c76-ba89-b5e2dc143830</div><div>vm_disk_vol_id=e3920b18-4467-<wbr>44f8-b2d0-629b3b1d1a58</div><div>domainType=fc</div><div>port=</div><div>console=vnc</div><div>ca_subject=&quot;C=EN, L=Test, O=Test, CN=Test&quot;</div><div>password=</div><div>vmid=3f7d9c1d-6c3e-4b96-b85d-<wbr>d240f3bf9b76</div><div>lockspace_image_UUID=49e318ad-<wbr>63a3-4efd-977c-33b8c4c93728</div><div>lockspace_volume_UUID=<wbr>91bcb5cf-006c-42b4-b419-<wbr>6ac9f841f50a</div><div>vdsm_use_ssl=true</div><div>storage=None</div><div>conf=/var/run/ovirt-hosted-<wbr>engine-ha/vm.conf</div></div><div><br></div><div>This is original one:</div><div><br></div><div><div>fqdn=<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a href="http://dev-ovirtengine0.somedomain.it" rel="noreferrer noreferrer" target="_blank">dev-ovirtengine0.<wbr>somedomain.it</a></span></div><div>vm_disk_id=febde231-92cc-4599-<wbr>8f55-816f63132739</div><div>vm_disk_vol_id=e3920b18-4467-<wbr>44f8-b2d0-629b3b1d1a58</div><div>vmid=3f7d9c1d-6c3e-4b96-b85d-<wbr>d240f3bf9b76</div><div>storage=None</div><div>mnt_options=</div><div>conf=/var/run/ovirt-hosted-<wbr>engine-ha/vm.conf</div><div>host_id=1</div><div>console=vnc</div><div>domainType=fc</div><div>spUUID=00000000-0000-0000-<wbr>0000-000000000000</div><div>sdUUID=7e7a275c-6939-4f79-<wbr>85f6-d695209951ea</div><div>connectionUUID=81a2f9a3-2efe-<wbr>448f-b305-e22543068044</div><div>ca_cert=/etc/pki/vdsm/libvirt-<wbr>spice/ca-cert.pem</div><div>ca_subject=&quot;C=EN, L=Test, O=Test, CN=Test&quot;</div><div>vdsm_use_ssl=true</div><div>gateway=192.168.8.1</div><div>bridge=ovirtmgmt</div><div>metadata_volume_UUID=7ebaf268-<wbr>15ec-4c76-ba89-b5e2dc143830</div><div>metadata_image_UUID=fe95f22e-<wbr>b468-4adf-a754-21d419ae3e67</div><div>lockspace_volume_UUID=<wbr>91bcb5cf-006c-42b4-b419-<wbr>6ac9f841f50a</div><div>lockspace_image_UUID=49e318ad-<wbr>63a3-4efd-977c-33b8c4c93728</div><div>conf_volume_UUID=d6b7e25c-<wbr>9912-47ff-b104-9d424b9f34b8</div><div>conf_image_UUID=f2813205-4b0c-<wbr>45f3-a9cb-3748f61d2194</div><div><br></div><div># The following are used only for iSCSI storage</div><div>iqn=</div><div>portal=</div><div>user=</div><div>password=</div><div>port=</div></div><div><br></div><div>Packages:</div><div><br></div><div><div>ovirt-imageio-daemon-1.0.0-1.<wbr>el7.noarch             </div><div>ovirt-host-deploy-1.6.7-1.el7.<wbr>centos.noarch         </div><div>ovirt-release41-4.1.9-1.el7.<wbr>centos.noarch           </div><div>ovirt-setup-lib-1.1.4-1.el7.<wbr>centos.noarch           </div><div>ovirt-hosted-engine-ha-2.1.8-<wbr>1.el7.centos.noarch    </div><div>ovirt-hosted-engine-setup-2.1.<wbr>4-1.el7.centos.noarch </div><div>ovirt-vmconsole-1.0.4-1.el7.<wbr>centos.noarch           </div><div>ovirt-vmconsole-host-1.0.4-1.<wbr>el7.centos.noarch      </div><div>ovirt-engine-sdk-python-3.6.9.<wbr>1-1.el7.centos.noarch </div><div>ovirt-imageio-common-1.0.0-1.<wbr>el7.noarch      </div></div><div><br></div><div>Output from agent.log</div><div><br></div><div><div>MainThread::INFO::2018-03-02 15:01:47,279::brokerlink::141:<wbr>:ovirt_hosted_engine_ha.lib.<wbr>brokerlink.BrokerLink::(start_<wbr>monitor) Success, id 140493346760912</div><div>MainThread::INFO::2018-03-02 15:01:51,011::brokerlink::179:<wbr>:ovirt_hosted_engine_ha.lib.<wbr>brokerlink.BrokerLink::(set_<wbr>storage_domain) Success, id 140493346759824</div><div>MainThread::INFO::2018-03-02 15:01:51,011::hosted_engine::<wbr>601::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(_initialize_<wbr>broker) Broker initialized, all submonitors started</div><div>MainThread::INFO::2018-03-02 15:01:51,045::hosted_engine::<wbr>704::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(_initialize_<wbr>sanlock) Ensuring lease for lockspace hosted-engine, host id 1 is acquired (file: /var/run/vdsm/storage/<wbr>7e7a275c-6939-4f79-85f6-<wbr>d695209951ea/49e318ad-63a3-<wbr>4efd-977c-33b8c4c93728/<wbr>91bcb5cf-006c-42b4-b419-<wbr>6ac9f841f50a)</div><div>MainThread::INFO::2018-03-02 15:04:12,058::hosted_engine::<wbr>745::ovirt_hosted_engine_ha.<wbr>agent.hosted_engine.<wbr>HostedEngine::(_initialize_<wbr>sanlock) Failed to acquire the lock. Waiting &#39;5&#39;s before the next attempt</div></div><div><br></div><div>Regards</div><div><br></div><div>Krzysztof </div><div><br></div></div></div></div>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" rel="noreferrer noreferrer" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>