<div>Hi, thanks for your feedback. I hava another qeustions</div><div><br></div><div>I deploy two node for hosted engine, first hosted engine VM run in&nbsp;192.168.122.65, I power off this host, hosted-engine VM switch</div><div>another host,but ovirt engine still connect 192.168.122.65. &nbsp;if restart ovirt-engine server, it is work.</div><div><br></div><div><br></div><div><div>&nbsp;2018-04-20 17:13:04,692+08 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand] (EE-ManagedThreadFactory-en &nbsp; &nbsp; gineScheduled-Thread-98) [] Command 'GetAllVmStatsVDSCommand(HostName = hosted-engine2, VdsIdVDSCommandParametersBase:{hos &nbsp; &nbsp; tId='a5428ef7-9df6-4a86-91de-7e36fda340fa'})' execution failed: java.net.NoRouteToHostException: No route to host</div><div>6568 2018-04-20 17:13:04,693+08 INFO &nbsp;[org.ovirt.engine.core.vdsbroker.monitoring.PollVmStatsRefresher] (EE-ManagedThreadFactory-engi &nbsp; &nbsp; neScheduled-Thread-98) [] Failed to fetch vms info for host 'hosted-engin2' - skipping VMs monitoring.</div><div>6569 2018-04-20 17:13:19,710+08 INFO &nbsp;[org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] <span style="background-color: rgb(255, 255, 0);">Connecting to hosted-engine2/192.168.122.656570 2018-04-20 17:13:22,730+08 ERROR</span> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand] (EE-ManagedThreadFactory-en &nbsp; &nbsp; gineScheduled-Thread-45) [] Command 'GetAllVmStatsVDSCommand(HostName = hosted-engine-tchyp2, VdsIdVDSCommandParametersBase:{hos &nbsp; &nbsp; tId='a5428ef7-9df6-4a86-91de-7e36fda340fa'})' execution failed: java.net.NoRouteToHostException: No route to host</div><div>6571 2018-04-20 17:13:22,732+08 INFO &nbsp;[org.ovirt.engine.core.vdsbroker.monitoring.PollVmStatsRefresher] (EE-ManagedThreadFactory-engi &nbsp; &nbsp; neScheduled-Thread-45) [] Failed to fetch vms info for host 'hosted-engine2' - skipping VMs monitoring.</div></div><div><br></div><div id="origbody"><div style="background: #f2f2f2;">----- Original Message -----<br>From: Martin Sivak &lt;msivak@redhat.com&gt;<br>To: dhy336 &lt;dhy336@sina.com&gt;<br>Cc: users &lt;users@ovirt.org&gt;<br>Subject: Re: [ovirt-users] 回复:Re: Hosted-engine can not_switch<br>Date: 2018-04-20 16:40<br></div><br><br>Hi,<br>your ovirt-hosted-engine-ha package is too old. You need at least<br>2.1.9 to properly support 4.2 engine. The same applies to vdsm. Please<br>upgrade the node.<br>Best regards<br>Martin Sivak<br>On Fri, Apr 20, 2018 at 3:58 AM,  &lt;dhy336@sina.com&gt; wrote:<br>&gt; Hi I find some error logs in /var/log/ovirt-hosted-engine-ha/broker.<br>&gt;<br>&gt; [root@hosted-engine2 ~]# ll /rhev/data-center/mnt<br>&gt; total 0<br>&gt; drwxr-xr-x. 3 vdsm kvm 76 Apr 18 22:28 192.168.122.218:_exports_data<br>&gt; drwxr-xr-x. 3 vdsm kvm 76 Apr 18 22:12<br>&gt; 192.168.122.218:_exports_hosted-engine-test1<br>&gt; [root@hosted-engine2 ~]# ll<br>&gt; /rhev/data-center/mnt/192.168.122.218\:_exports_hosted-engine-test1/<br>&gt; total 0<br>&gt; drwxr-xr-x. 5 vdsm kvm 50 Apr 18 22:14 8a734205-65b7-4801-b7f0-d380eb45dbae<br>&gt; -rwxr-xr-x. 1 vdsm kvm  0 Apr 20 09:54 __DIRECT_IO_TEST__<br>&gt;<br>&gt; uuid 8a734205-65b7-4801-b7f0-d380eb45dbae is in<br>&gt; /rhev/data-center/mnt/192.168.122.218\:_exports_hosted-engine-test1/<br>&gt; but broker find it in  /rhev/data-center/mnt, is it my version is error? my<br>&gt; ovirt-hosted-engine-ha version is 2.1.5, vdsm is 4.20.5,<br>&gt; ovirt-engine is 4.2<br>&gt;<br>&gt; MainThread::INFO::2018-04-19<br>&gt; 19:26:31,479::listener::41::ovirt_hosted_engine_ha.broker.listener.Listener::(__init__)<br>&gt; Initializing SocketServer<br>&gt; MainThread::INFO::2018-04-19<br>&gt; 19:26:31,480::listener::56::ovirt_hosted_engine_ha.broker.listener.Listener::(__init__)<br>&gt; SocketServer ready<br>&gt; Thread-1::INFO::2018-04-19<br>&gt; 19:26:31,558::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup)<br>&gt; Connection established<br>&gt; Thread-1::ERROR::2018-04-19<br>&gt; 19:26:31,559::listener::192::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle)<br>&gt; Error handling request, data: 'set-storage-domain FilesystemBackend<br>&gt; dom_type=nfs3 sd_uuid=8a734205-65b7-4801-b7f0-d380eb45dbae'<br>&gt; Traceback (most recent call last):<br>&gt;   File<br>&gt; "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/listener.py",<br>&gt; line 166, in handle<br>&gt;     data)<br>&gt;   File<br>&gt; "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/listener.py",<br>&gt; line 299, in _dispatch<br>&gt;     .set_storage_domain(client, sd_type, **options)<br>&gt;   File<br>&gt; "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py",<br>&gt; line 66, in set_storage_domain<br>&gt;     self._backends[client].connect()<br>&gt;   File<br>&gt; "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",<br>&gt; line 462, in connect<br>&gt;     self._dom_type)<br>&gt;   File<br>&gt; "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",<br>&gt; line 107, in get_domain_path<br>&gt;     " in {1}".format(sd_uuid, parent))<br>&gt; BackendFailureException: path to storage domain<br>&gt; 8a734205-65b7-4801-b7f0-d380eb45dbae not found in /rhev/data-center/mnt<br>&gt; Thread-1::INFO::2018-04-19<br>&gt; 19:26:31,563::listener::186::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle)<br>&gt; Connection closed<br>&gt; Thread-2::INFO::2018-04-19<br>&gt; 19:26:44,601::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup)<br>&gt; Connection established<br>&gt;<br>&gt; ----- 原始邮件 -----<br>&gt; 发件人:&lt;dhy336@sina.com&gt;<br>&gt; 收件人:"Martin Sivak" &lt;msivak@redhat.com&gt;<br>&gt; 抄送人:users &lt;users@ovirt.org&gt;<br>&gt; 主题:[ovirt-users] 回复:Re: Hosted-engine can not_switch<br>&gt; 日期:2018年04月20日 09点30分<br>&gt;<br>&gt; libvirt has not error logs . I only find some error for vdsm.<br>&gt; vdsm log is:<br>&gt; 2018-04-20 09:24:52,610+0800 INFO  (jsonrpc/1) [vdsm.api] FINISH<br>&gt; getVolumeInfo return={'info': {'status': 'OK', 'domain':<br>&gt; '8a734205-65b7-4801-b7f0-d380eb45dbae', 'voltype': 'LEAF', 'description':<br>&gt; 'hosted-engine.lockspace', 'parent': '00000000-0000-0000-0000-000000000000',<br>&gt; 'format': 'RAW', 'generation': 0, 'image':<br>&gt; '611272bd-c2cc-42bc-94e2-9aa52e754c35', 'ctime': '1524032037', 'disktype':<br>&gt; '2', 'legality': 'LEGAL', 'mtime': '0', 'apparentsize': '1048576',<br>&gt; 'children': [], 'pool': '', 'capacity': '1048576', 'uuid':<br>&gt; u'7037aac6-7c8e-4efd-82f7-ca618c953fe6', 'truesize': '1048576', 'type':<br>&gt; 'PREALLOCATED', 'lease': {'owners': [], 'version': None}}} from=::1,48306,<br>&gt; task_id=03a7938e-8afb-4b16-b8dd-126c2b1f5d52 (api:52)<br>&gt; 2018-04-20 09:24:52,611+0800 INFO  (jsonrpc/1) [jsonrpc.JsonRpcServer] RPC<br>&gt; call Volume.getInfo succeeded in 0.03 seconds (__init__:630)<br>&gt; 2018-04-20 09:24:54,113+0800 ERROR (periodic/3) [virt.periodic.Operation]<br>&gt; &lt;vdsm.virt.sampling.VMBulkstatsMonitor object at 0x1e92f90&gt; operation failed<br>&gt; (periodic:215)<br>&gt; Traceback (most recent call last):<br>&gt;   File "/usr/lib/python2.7/site-packages/vdsm/virt/periodic.py", line 213,<br>&gt; in __call__<br>&gt;     self._func()<br>&gt;   File "/usr/lib/python2.7/site-packages/vdsm/virt/sampling.py", line 522,<br>&gt; in __call__<br>&gt;     self._send_metrics()<br>&gt;   File "/usr/lib/python2.7/site-packages/vdsm/virt/sampling.py", line 538,<br>&gt; in _send_metrics<br>&gt;     vm_sample.interval)<br>&gt;   File "/usr/lib/python2.7/site-packages/vdsm/virt/vmstats.py", line 45, in<br>&gt; produce<br>&gt;     networks(vm, stats, first_sample, last_sample, interval)<br>&gt;   File "/usr/lib/python2.7/site-packages/vdsm/virt/vmstats.py", line 322, in<br>&gt; networks<br>&gt;     if nic.name.startswith('hostdev'):<br>&gt; AttributeError: name<br>&gt; 2018-04-20 09:24:54,800+0800 INFO  (Reactor thread)<br>&gt; [ProtocolDetector.AcceptorImpl] Accepted connection from ::1:48308<br>&gt; (protocoldetector:61)<br>&gt; 2018-04-20 09:24:54,810+0800 INFO  (Reactor thread)<br>&gt; [ProtocolDetector.Detector] Detected protocol stomp from ::1:48308<br>&gt; (protocoldetector:125)<br>&gt; 2018-04-20 09:24:54,810+0800 INFO  (Reactor thread) [Broker.StompAdapter]<br>&gt; Processing CONNECT request (stompreactor:103)<br>&gt; 2018-04-20 09:24:54,818+0800 INFO  (JsonRpc (StompReactor))<br>&gt; [Broker.StompAdapter] Subscribe command received (stompreactor:132)<br>&gt; 2018-04-20 09:24:55,119+0800 INFO  (jsonrpc/6) [api.host] START<br>&gt; getHardwareInfo() from=::1,48308 (api:46)<br>&gt;<br>&gt; ----- 原始邮件 -----<br>&gt; 发件人:Martin Sivak &lt;msivak@redhat.com&gt;<br>&gt; 收件人:dhy336 &lt;dhy336@sina.com&gt;<br>&gt; 抄送人:users &lt;users@ovirt.org&gt;<br>&gt; 主题:Re: [ovirt-users] Hosted-engine can not switch<br>&gt; 日期:2018年04月19日 20点16分<br>&gt;<br>&gt;<br>&gt; We need more than just this small log snippet. Please check the vdsm<br>&gt; and libvirt logs as well.<br>&gt; Best regards<br>&gt; Martin Sivak<br>&gt; On Thu, Apr 19, 2018 at 2:05 PM, &lt;dhy336@sina.com&gt; wrote:<br>&gt;&gt; Hi,<br>&gt;&gt; I deploy three node with hosted engine, I force shut down a node which<br>&gt;&gt; Host-engine VM is run, But hosted engine VM in other nodes can not run.<br>&gt;&gt;<br>&gt;&gt; I find some error in /var/log/ovirt-hosted-engine-ha/agent.log<br>&gt;&gt;<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:35,787::hosted_engine::1192::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_clean_vdsm_state)<br>&gt;&gt; Cleaning state for non-running VM<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:42,587::hosted_engine::1176::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_clean_vdsm_state)<br>&gt;&gt; Vdsm state for VM clean<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:42,589::hosted_engine::1125::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)<br>&gt;&gt; Starting vm using `/usr/sbin/hosted-engine --vm-start`<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:47,599::hosted_engine::1131::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)<br>&gt;&gt; stdout:<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:47,600::hosted_engine::1132::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)<br>&gt;&gt; stderr: Virtual machine does not exist: {'vmId':<br>&gt;&gt; u'08bbd680-a8a7-4267-82e7-89f36e87e930'}<br>&gt;&gt;<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:47,600::hosted_engine::1144::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)<br>&gt;&gt; Engine VM started on localhost<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:47,609::brokerlink::111::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)<br>&gt;&gt; Trying: notify time=1524139007.61 type=state_transition<br>&gt;&gt; detail=EngineStart-EngineStarting hostname='hosted-engine2'<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:47,670::brokerlink::121::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)<br>&gt;&gt; Success, was notification of state_transition (EngineStart-EngineStarting)<br>&gt;&gt; sent? sent<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:47,670::hosted_engine::604::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_vdsm)<br>&gt;&gt; Initializing VDSM<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:50,095::hosted_engine::630::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)<br>&gt;&gt; Connecting the storage<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:50,096::storage_server::220::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(validate_storage_server)<br>&gt;&gt; Validating storage server<br>&gt;&gt; MainThread::INFO::2018-04-19<br>&gt;&gt;<br>&gt;&gt; 19:56:52,449::hosted_engine::639::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_storage_images)<br>&gt;&gt; Storage domain reported as valid and reconnect is not forced.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Users mailing list<br>&gt;&gt; Users@ovirt.org<br>&gt;&gt; http://lists.ovirt.org/mailman/listinfo/users<br>&gt;&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; Users@ovirt.org<br>&gt; http://lists.ovirt.org/mailman/listinfo/users<br></div>