<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div data-marker="__QUOTED_TEXT__"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hi Jirka,<br><br>the patch works. it stabilized the status of my two hosts. the engine migration during failover also works fine. thanks guys! <img src="cid:8b096be5d873a9597907183bb13f9baf5a0669a2@zimbra"><br></div><div><br data-mce-bogus="1"></div><div>Jaicel</div><br><hr id="zwchr"><div><b>From: </b>"Jiri Moskovcak" &lt;jmoskovc@redhat.com&gt;<br><b>To: </b>"Jaicel" &lt;jaicel@asti.dost.gov.ph&gt;<br><b>Cc: </b>"Niels de Vos" &lt;ndevos@redhat.com&gt;, "Vijay Bellur" &lt;vbellur@redhat.com&gt;, users@ovirt.org, "Gluster Devel" &lt;gluster-devel@gluster.org&gt;<br><b>Sent: </b>Monday, November 3, 2014 3:33:16 PM<br><b>Subject: </b>Re: [ovirt-users] Hosted-Engine HA problem<br></div><br><div>On 11/01/2014 07:43 AM, Jaicel wrote:<br>&gt; Hi,<br>&gt;<br>&gt; my engine runs on Host1. current status and agent logs below.<br>&gt;<br>&gt; Host 1<br><br>Hi,<br>it seems like you ran into [1], you can either zero-out the metadata <br>file or apply the patch from [1] manually.<br><br>--Jirka<br><br>[1] https://bugzilla.redhat.com/show_bug.cgi?id=1158925<br><br>&gt;<br>&gt; MainThread::INFO::2014-10-31 16:55:39,918::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run) ovirt-hosted-engi<br>&gt; ne-ha agent 1.1.6 started<br>&gt; MainThread::INFO::2014-10-31 16:55:39,985::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_get_hostname) Found certificate common name: 192.168.12.11<br>&gt; MainThread::INFO::2014-10-31 16:55:40,228::hosted_engine::367::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_initialize_broker) Initializing ha-broker connection<br>&gt; MainThread::INFO::2014-10-31 16:55:40,228::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor ping, options {'addr': '192.168.12.254'}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,231::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 140634215107920<br>&gt; MainThread::INFO::2014-10-31 16:55:40,231::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor mgmt-bridge, options {'use_ssl': 'true', 'bridge_name': 'ovirtmgmt', 'address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,237::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 140634215108432<br>&gt; MainThread::INFO::2014-10-31 16:55:40,237::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor mem-free, options {'use_ssl': 'true', 'address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,240::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 39956688<br>&gt; MainThread::INFO::2014-10-31 16:55:40,240::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor cpu-load-no-engine, options {'use_ssl': 'true', 'vm_uuid': '41d4aff1-54e1-4946-a812-2e656bb7d3f<br>&gt; 9', 'address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,243::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 140634215107664<br>&gt; MainThread::INFO::2014-10-31 16:55:40,244::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor engine-health, options {'use_ssl': 'true', 'vm_uuid': '41d4aff1-54e1-4946-a812-2e656bb7d3f9', '<br>&gt; address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,249::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 140634006879632<br>&gt; MainThread::INFO::2014-10-31 16:55:40,249::hosted_engine::391::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_initialize_broker) Broker initialized, all submonitors started<br>&gt; MainThread::INFO::2014-10-31 16:55:40,298::hosted_engine::476::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_initialize_sanlock) Ensuring lease for lockspace hosted-engine, host id 1 is acquired (file: /rhev/data-center/mnt/g<br>&gt; luster1:_engine/6eb220be-daff-4785-8f78-111cc24139c4/ha_agent/hosted-engine.lockspace)<br>&gt; MainThread::INFO::2014-10-31 16:55:40,322::state_machine::153::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(refresh) Global metadata: {'maintenance': False}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,322::state_machine::158::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(refresh) Host 192.168.12.12 (id 2): {'live-data': False, 'extra': 'metadata_parse_version=1\nmetadata_feature_version<br>&gt; =1\ntimestamp=1413882675 (Tue Oct 21 17:11:15 2014)\nhost-id=2\nscore=2400\nmaintenance=False\nstate=EngineDown\n', 'hostname': '192.168.12.12', 'host-id': 2, 'engine-status': {'reason': 'vm not running on this host', 'health': 'bad', 'vm': 'down', 'detail': 'unknown'}, 'score': 2400, 'maintenance': False, 'host-ts': 1413882675}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,322::state_machine::161::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(refresh) Local (id 1): {'engine-health': None, 'bridge': True, 'mem-free': None, 'maintenance': False, 'cpu-load': None, 'gateway': True}<br>&gt; MainThread::INFO::2014-10-31 16:55:40,323::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Trying: notify time=1414745740.32 type=state_transition detail=StartState-ReinitializeFSM hostname='ovirt1'<br>&gt; MainThread::INFO::2014-10-31 16:55:40,392::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (StartState-ReinitializeFSM) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:55:40,675::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state ReinitializeFSM (score: 0)<br>&gt; MainThread::INFO::2014-10-31 16:55:50,710::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)<br>&gt; Trying: notify time=1414745750.71 type=state_transition detail=ReinitializeFSM-EngineUp hostname='ovirt1'<br>&gt; MainThread::INFO::2014-10-31 16:55:50,710::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (ReinitializeFSM-EngineUp) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:55:51,001::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state EngineUp (score: 2400)<br>&gt; MainThread::CRITICAL::2014-10-31 16:56:01,033::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run) Could not start ha-agent<br>&gt; Traceback (most recent call last):<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 97, in run<br>&gt; &nbsp; &nbsp; &nbsp;self._run_agent()<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 154, in _run_agent<br>&gt; &nbsp; &nbsp; &nbsp;hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 307, in start_monitoring<br>&gt; &nbsp; &nbsp; &nbsp;for old_state, state, delay in self.fsm:<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py", line 125, in next<br>&gt; &nbsp; &nbsp; &nbsp;new_data = self.refresh(self._state.data)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py", line 77, in refresh<br>&gt; &nbsp; &nbsp; &nbsp;stats.update(self.hosted_engine.collect_stats())<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 700, in collect_stats<br>&gt; &nbsp; &nbsp; &nbsp;stats = self.process_remote_metadata(host_id, remote_data)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 747, in process_remote_metadata<br>&gt; &nbsp; &nbsp; &nbsp;md['engine-status'] = engine_status(md["engine-status"])<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 79, in engine_status<br>&gt; &nbsp; &nbsp; &nbsp;in json.loads(status).iteritems()])<br>&gt; AttributeError: 'NoneType' object has no attribute 'iteritems'<br>&gt; [root@ovirt1 ~]# hosted-engine --vm-status<br>&gt;<br>&gt;<br>&gt; --== Host 1 status ==--<br>&gt;<br>&gt; Status up-to-date &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: False<br>&gt; Hostname &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 192.168.12.11<br>&gt; Host ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 1<br>&gt; Engine status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: unknown stale-data<br>&gt; Score &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 2400<br>&gt; Local maintenance &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: False<br>&gt; Host timestamp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 1414745750<br>&gt; Extra metadata (valid at timestamp):<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;metadata_parse_version=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;metadata_feature_version=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;timestamp=1414745750 (Fri Oct 31 16:55:50 2014)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;host-id=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;score=2400<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maintenance=False<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state=EngineUp<br>&gt;<br>&gt;<br>&gt; --== Host 2 status ==--<br>&gt;<br>&gt; Status up-to-date &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: False<br>&gt; Hostname &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 192.168.12.12<br>&gt; Host ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 2<br>&gt; Engine status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: unknown stale-data<br>&gt; Score &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 2400<br>&gt; Local maintenance &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: False<br>&gt; Host timestamp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 1414745821<br>&gt; Extra metadata (valid at timestamp):<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;metadata_parse_version=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;metadata_feature_version=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;timestamp=1414745821 (Fri Oct 31 16:57:01 2014)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;host-id=2<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;score=2400<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maintenance=False<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state=EngineStart<br>&gt; [root@ovirt1 ~]# service ovirt-ha-agent status<br>&gt; ovirt-ha-agent dead but subsys locked<br>&gt;<br>&gt; Host2<br>&gt;<br>&gt; MainThread::INFO::2014-10-31 16:55:59,642::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run) ovirt-hosted-engi<br>&gt; ne-ha agent 1.1.6 started<br>&gt; MainThread::INFO::2014-10-31 16:55:59,678::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_get_hostname) Found certificate common name: 192.168.12.12<br>&gt; MainThread::INFO::2014-10-31 16:55:59,918::hosted_engine::367::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_initialize_broker) Initializing ha-broker connection<br>&gt; MainThread::INFO::2014-10-31 16:55:59,919::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor ping, options {'addr': '192.168.12.254'}<br>&gt; MainThread::INFO::2014-10-31 16:55:59,922::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 25353488<br>&gt; MainThread::INFO::2014-10-31 16:55:59,922::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor mgmt-bridge, options {'use_ssl': 'true', 'bridge_name': 'ovirtmgmt', 'address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:59,928::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 25354128<br>&gt; MainThread::INFO::2014-10-31 16:55:59,928::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor mem-free, options {'use_ssl': 'true', 'address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:59,931::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 25353552<br>&gt; MainThread::INFO::2014-10-31 16:55:59,931::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor cpu-load-no-engine, options {'use_ssl': 'true', 'vm_uuid': '41d4aff1-54e1-4946-a812-2e656bb7d3f<br>&gt; 9', 'address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:59,934::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 139976608389584<br>&gt; MainThread::INFO::2014-10-31 16:55:59,934::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Starting monitor engine-health, options {'use_ssl': 'true', 'vm_uuid': '41d4aff1-54e1-4946-a812-2e656bb7d3f9', '<br>&gt; address': '0'}<br>&gt; MainThread::INFO::2014-10-31 16:55:59,939::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_mo<br>&gt; nitor) Success, id 139976608447760<br>&gt; MainThread::INFO::2014-10-31 16:55:59,939::hosted_engine::391::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_initialize_broker) Broker initialized, all submonitors started<br>&gt; MainThread::INFO::2014-10-31 16:55:59,983::hosted_engine::476::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(_initialize_sanlock) Ensuring lease for lockspace hosted-engine, host id 2 is acquired (file: /rhev/data-center/mnt/g<br>&gt; luster1:_engine/6eb220be-daff-4785-8f78-111cc24139c4/ha_agent/hosted-engine.lockspace)<br>&gt; MainThread::INFO::2014-10-31 16:56:00,001::state_machine::153::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(refresh) Global metadata: {'maintenance': False}<br>&gt; MainThread::INFO::2014-10-31 16:56:00,001::state_machine::158::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(refresh) Host 192.168.12.11 (id 1): {'live-data': True, 'extra': 'metadata_parse_version=1\nmetadata_feature_version=<br>&gt; 1\ntimestamp=1414745750 (Fri Oct 31 16:55:50 2014)\nhost-id=1\nscore=2400\nmaintenance=False\nstate=EngineUp\n', 'hostn<br>&gt; ame': '192.168.12.11', 'host-id': 1, 'engine-status': {'health': 'good', 'vm': 'up', 'detail': 'up'}, 'score': 2400, 'm<br>&gt; aintenance': False, 'host-ts': 1414745750}<br>&gt; MainThread::INFO::2014-10-31 16:56:00,001::state_machine::161::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(refresh) Local (id 2): {'engine-health': None, 'bridge': True, 'mem-free': None, 'maintenance': False, 'cpu-load': No<br>&gt; ne, 'gateway': True}<br>&gt; MainThread::INFO::2014-10-31 16:56:00,002::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)<br>&gt; Trying: notify time=1414745760.0 type=state_transition detail=StartState-ReinitializeFSM hostname='ovirt2'<br>&gt; MainThread::INFO::2014-10-31 16:56:00,045::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)<br>&gt; Success, was notification of state_transition (StartState-ReinitializeFSM) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:56:00,325::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine:<br>&gt; :(start_monitoring) Current state ReinitializeFSM (score: 0)<br>&gt; MainThread::INFO::2014-10-31 16:56:10,352::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Trying: notify time=1414745770.35 type=state_transition detail=ReinitializeFSM-EngineDown hostname='ovirt2'<br>&gt; MainThread::INFO::2014-10-31 16:56:10,353::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (ReinitializeFSM-EngineDown) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:56:10,638::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state EngineDown (score: 2400)<br>&gt; MainThread::INFO::2014-10-31 16:56:20,663::states::441::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume) The engine is not running, but we do not have enough data to decide which hosts are alive<br>&gt; MainThread::INFO::2014-10-31 16:56:20,663::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Trying: notify time=1414745780.66 type=state_transition detail=EngineDown-EngineDown hostname='ovirt2'<br>&gt; MainThread::INFO::2014-10-31 16:56:20,664::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (EngineDown-EngineDown) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:56:20,943::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state EngineDown (score: 2400)<br>&gt; MainThread::INFO::2014-10-31 16:56:30,968::states::441::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume) The engine is not running, but we do not have enough data to decide which hosts are alive<br>&gt; MainThread::INFO::2014-10-31 16:56:30,969::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Trying: notify time=1414745790.97 type=state_transition detail=EngineDown-EngineDown hostname='ovirt2'<br>&gt; MainThread::INFO::2014-10-31 16:56:30,969::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (EngineDown-EngineDown) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:56:31,248::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state EngineDown (score: 2400)<br>&gt; MainThread::INFO::2014-10-31 16:56:41,274::states::441::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume) The engine is not running, but we do not have enough data to decide which hosts are alive<br>&gt; MainThread::INFO::2014-10-31 16:56:41,275::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Trying: notify time=1414745801.28 type=state_transition detail=EngineDown-EngineDown hostname='ovirt2'<br>&gt; MainThread::INFO::2014-10-31 16:56:41,276::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (EngineDown-EngineDown) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:56:41,555::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state EngineDown (score: 2400)<br>&gt; MainThread::INFO::2014-10-31 16:56:51,583::states::441::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume) The engine is not running, but we do not have enough data to decide which hosts are alive<br>&gt; MainThread::INFO::2014-10-31 16:56:51,584::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Trying: notify time=1414745811.58 type=state_transition detail=EngineDown-EngineDown hostname='ovirt2'<br>&gt; MainThread::INFO::2014-10-31 16:56:51,584::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (EngineDown-EngineDown) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:56:51,864::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state EngineDown (score: 2400)<br>&gt; MainThread::INFO::2014-10-31 16:57:01,897::states::454::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume) Engine down and local host has best score (2400), attempting to start engine VM<br>&gt; MainThread::INFO::2014-10-31 16:57:01,898::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Trying: notify time=1414745821.9 type=state_transition detail=EngineDown-EngineStart hostname='ovirt2'<br>&gt; MainThread::INFO::2014-10-31 16:57:01,906::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify) Success, was notification of state_transition (EngineDown-EngineStart) sent? ignored<br>&gt; MainThread::INFO::2014-10-31 16:57:02,189::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring) Current state EngineStart (score: 2400)<br>&gt; MainThread::CRITICAL::2014-10-31 16:57:02,207::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run) Could not start ha-agent<br>&gt; Traceback (most recent call last):<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 97, in run<br>&gt; &nbsp; &nbsp; &nbsp;self._run_agent()<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 154, in _run_agent<br>&gt; &nbsp; &nbsp; &nbsp;hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 307, in start_monitoring<br>&gt; &nbsp; &nbsp; &nbsp;for old_state, state, delay in self.fsm:<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py", line 125, in next<br>&gt; &nbsp; &nbsp; &nbsp;new_data = self.refresh(self._state.data)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py", line 77, in refresh<br>&gt; &nbsp; &nbsp; &nbsp;stats.update(self.hosted_engine.collect_stats())<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 662, in collect_stats<br>&gt; &nbsp; &nbsp; &nbsp;constants.SERVICE_TYPE)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 171, in get_stats_from_storage<br>&gt; &nbsp; &nbsp; &nbsp;result = self._checked_communicate(request)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 199, in _checked_communicate<br>&gt; &nbsp; &nbsp; &nbsp;.format(message or response))<br>&gt; RequestError: Request failed: &lt;type 'exceptions.OSError'&gt;<br>&gt;<br>&gt; [root@ovirt2 ~]# hosted-engine --vm-status<br>&gt; Traceback (most recent call last):<br>&gt; &nbsp; &nbsp;File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main<br>&gt; &nbsp; &nbsp; &nbsp;"__main__", fname, loader, pkg_name)<br>&gt; &nbsp; &nbsp;File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code<br>&gt; &nbsp; &nbsp; &nbsp;exec code in run_globals<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_setup/vm_status.py", line 111, in &lt;module&gt;<br>&gt; &nbsp; &nbsp; &nbsp;if not status_checker.print_status():<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_setup/vm_status.py", line 58, in print_status<br>&gt; &nbsp; &nbsp; &nbsp;all_host_stats = ha_cli.get_all_host_stats()<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/client/client.py", line 137, in get_all_host_stats<br>&gt; &nbsp; &nbsp; &nbsp;return self.get_all_stats(self.StatModes.HOST)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/client/client.py", line 86, in get_all_stats<br>&gt; &nbsp; &nbsp; &nbsp;constants.SERVICE_TYPE)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 171, in get_stats_from_storage<br>&gt; &nbsp; &nbsp; &nbsp;result = self._checked_communicate(request)<br>&gt; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 199, in _checked_communicate<br>&gt; &nbsp; &nbsp; &nbsp;.format(message or response))<br>&gt; ovirt_hosted_engine_ha.lib.exceptions.RequestError: Request failed: &lt;type 'exceptions.OSError'&gt;<br>&gt; [root@ovirt2 ~]# service ovirt-ha-agent status<br>&gt; ovirt-ha-agent dead but subsys locked<br>&gt;<br>&gt;<br>&gt; Thanks,<br>&gt; Jaicel<br>&gt;<br>&gt; ----- Original Message -----<br>&gt; From: "Jiri Moskovcak" &lt;jmoskovc@redhat.com&gt;<br>&gt; To: "Jaicel" &lt;jaicel@asti.dost.gov.ph&gt;<br>&gt; Cc: "Niels de Vos" &lt;ndevos@redhat.com&gt;, "Vijay Bellur" &lt;vbellur@redhat.com&gt;, users@ovirt.org, "Gluster Devel" &lt;gluster-devel@gluster.org&gt;<br>&gt; Sent: Friday, October 31, 2014 11:05:32 PM<br>&gt; Subject: Re: [ovirt-users] Hosted-Engine HA problem<br>&gt;<br>&gt; On 10/31/2014 10:26 AM, Jaicel wrote:<br>&gt;&gt; i've increased the limit and then restarted agent and broker. status normalize, but then right now it went to "False" state again but still both having 2400 score. agent logs remains the same, with "ovirt-ha-agent dead but subsys locked" status. ha-broker logs below<br>&gt;&gt;<br>&gt;&gt; Thread-138::INFO::2014-10-31 17:24:22,981::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup) Connection established<br>&gt;&gt; Thread-138::INFO::2014-10-31 17:24:22,991::listener::184::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Connection closed<br>&gt;&gt; Thread-139::INFO::2014-10-31 17:24:38,385::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup) Connection established<br>&gt;&gt; Thread-139::INFO::2014-10-31 17:24:38,395::listener::184::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Connection closed<br>&gt;&gt; Thread-140::INFO::2014-10-31 17:24:53,816::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup) Connection established<br>&gt;&gt; Thread-140::INFO::2014-10-31 17:24:53,827::listener::184::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Connection closed<br>&gt;&gt; Thread-141::INFO::2014-10-31 17:25:09,172::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup) Connection established<br>&gt;&gt; Thread-141::INFO::2014-10-31 17:25:09,182::listener::184::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Connection closed<br>&gt;&gt; Thread-142::INFO::2014-10-31 17:25:24,551::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup) Connection established<br>&gt;&gt; Thread-142::INFO::2014-10-31 17:25:24,562::listener::184::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Connection closed<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>&gt;&gt; Jaicel<br>&gt;<br>&gt; ok, now it seems that broker runs fine, so I need the recent agent.log<br>&gt; to debug it more.<br>&gt;<br>&gt; --Jirka<br>&gt;<br>&gt;&gt;<br>&gt;&gt; ----- Original Message -----<br>&gt;&gt; From: "Jiri Moskovcak" &lt;jmoskovc@redhat.com&gt;<br>&gt;&gt; To: "Jaicel R. Sabonsolin" &lt;jaicel@asti.dost.gov.ph&gt;, "Niels de Vos" &lt;ndevos@redhat.com&gt;<br>&gt;&gt; Cc: "Vijay Bellur" &lt;vbellur@redhat.com&gt;, users@ovirt.org, "Gluster Devel" &lt;gluster-devel@gluster.org&gt;<br>&gt;&gt; Sent: Friday, October 31, 2014 4:32:02 PM<br>&gt;&gt; Subject: Re: [ovirt-users] Hosted-Engine HA problem<br>&gt;&gt;<br>&gt;&gt; On 10/31/2014 03:53 AM, Jaicel R. Sabonsolin wrote:<br>&gt;&gt;&gt; Hi guys,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; these logs appear on both hosts just like the result of --vm-status. tried to tcpdump on ovirt hosts and gluster nodes but only packets exchange with my monitoring VM(zabbix) appeared.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; agent.log<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;new_data = self.refresh(self._state.data)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py", line 77, in refresh<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;stats.update(self.hosted_engine.collect_stats())<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 662, in collect_stats<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;constants.SERVICE_TYPE)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 171, in get_stats_from_storage<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;result = self._checked_communicate(request)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py", line 199, in _checked_communicate<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.format(message or response))<br>&gt;&gt;&gt; RequestError: Request failed: &lt;type 'exceptions.OSError'&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; broker.log<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/listener.py", line 165, in handle<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;response = "success " + self._dispatch(data)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/listener.py", line 261, in _dispatch<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.get_all_stats_for_service_type(**options)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 41, in get_all_stats_for_service_type<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;d = self.get_raw_stats_for_service_type(storage_dir, service_type)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 74, in get_raw_stats_for_service_type<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;f = os.open(path, direct_flag | os.O_RDONLY)<br>&gt;&gt;&gt; OSError: [Errno 24] Too many open files: '/rhev/data-center/mnt/gluster1:_engine/6eb220be-daff-4785-8f78-111cc24139c4/ha_agent/hosted-engine.metadata'<br>&gt;&gt;<br>&gt;&gt; - ah, there we go ^^^^^^ you might need to tweak the limit of allowed<br>&gt;&gt; open files as described here [1] or find the app keeps so many files open<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; --Jirka<br>&gt;&gt;<br>&gt;&gt; [1]<br>&gt;&gt; http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/<br>&gt;&gt;<br>&gt;&gt;&gt; Thread-38160::INFO::2014-10-31 10:28:37,989::listener::184::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Connection closed<br>&gt;&gt;&gt; Thread-38161::INFO::2014-10-31 10:28:53,656::listener::134::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(setup) Connection established<br>&gt;&gt;&gt; Thread-38161::ERROR::2014-10-31 10:28:53,657::listener::190::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Error handling request, data: 'get-stats storage_dir=/rhev/data-center/mnt/gluster1:_engine/6eb220be-daff-4785-8f78-111cc24139c4/ha_agent service_type=hosted-engine'<br>&gt;&gt;&gt; Traceback (most recent call last):<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/listener.py", line 165, in handle<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;response = "success " + self._dispatch(data)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/listener.py", line 261, in _dispatch<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;.get_all_stats_for_service_type(**options)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 41, in get_all_stats_for_service_type<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;d = self.get_raw_stats_for_service_type(storage_dir, service_type)<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp;File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py", line 74, in get_raw_stats_for_service_type<br>&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;f = os.open(path, direct_flag | os.O_RDONLY)<br>&gt;&gt;&gt; OSError: [Errno 24] Too many open files: '/rhev/data-center/mnt/gluster1:_engine/6eb220be-daff-4785-8f78-111cc24139c4/ha_agent/hosted-engine.metadata'<br>&gt;&gt;&gt; Thread-38161::INFO::2014-10-31 10:28:53,658::listener::184::ovirt_hosted_engine_ha.broker.listener.ConnectionHandler::(handle) Connection closed<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks,<br>&gt;&gt;&gt; Jaicel<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; ----- Original Message -----<br>&gt;&gt;&gt; From: "Niels de Vos" &lt;ndevos@redhat.com&gt;<br>&gt;&gt;&gt; To: "Vijay Bellur" &lt;vbellur@redhat.com&gt;<br>&gt;&gt;&gt; Cc: "Jiri Moskovcak" &lt;jmoskovc@redhat.com&gt;, "Jaicel R. Sabonsolin" &lt;jaicel@asti.dost.gov.ph&gt;, users@ovirt.org, "Gluster Devel" &lt;gluster-devel@gluster.org&gt;<br>&gt;&gt;&gt; Sent: Friday, October 31, 2014 4:11:25 AM<br>&gt;&gt;&gt; Subject: Re: [ovirt-users] Hosted-Engine HA problem<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Thu, Oct 30, 2014 at 09:07:24PM +0530, Vijay Bellur wrote:<br>&gt;&gt;&gt;&gt; On 10/30/2014 06:45 PM, Jiri Moskovcak wrote:<br>&gt;&gt;&gt;&gt;&gt; On 10/30/2014 09:22 AM, Jaicel R. Sabonsolin wrote:<br>&gt;&gt;&gt;&gt;&gt;&gt; Hi Guys,<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; I need help with my ovirt Hosted-Engine HA setup. I am running on 2<br>&gt;&gt;&gt;&gt;&gt;&gt; ovirt hosts and 2 gluster nodes with replicated volumes. i already have<br>&gt;&gt;&gt;&gt;&gt;&gt; VMs running on my hosts and they can migrate normally once i for example<br>&gt;&gt;&gt;&gt;&gt;&gt; power off the host that they are running on. the problem is that the<br>&gt;&gt;&gt;&gt;&gt;&gt; engine can't migrate once i switch off the host that hosts the engine.<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; oVirt &nbsp; &nbsp; &nbsp; &nbsp;3.4.3-1.el6<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; KVM &nbsp; &nbsp; &nbsp; &nbsp; 0.12.1.2 - 2.415.el6_5.10<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; LIBVIRT &nbsp; libvirt-0.10.2-29.el6_5.9<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; VDSM &nbsp; &nbsp; &nbsp;vdsm-4.14.17-0.el6<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; right now, i have this result from hosted-engine --vm-status.<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File "/usr/lib64/python2.6/runpy.py", line 122, in<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; _run_module_as_main<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"__main__", fname, loader, pkg_name)<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exec code in run_globals<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_setup/vm_status.py",<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; line 111, in &lt;module&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if not status_checker.print_status():<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_setup/vm_status.py",<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; line 58, in print_status<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all_host_stats = ha_cli.get_all_host_stats()<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/client/client.py",<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; line 137, in get_all_host_stats<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return self.get_all_stats(self.StatModes.HOST)<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/client/client.py",<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; line 86, in get_all_stats<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;constants.SERVICE_TYPE)<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py",<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; line 171, in get_stats_from_storage<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result = self._checked_communicate(request)<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py",<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; line 199, in _checked_communicate<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.format(message or response))<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; ovirt_hosted_engine_ha.lib.exceptions.RequestError: Request failed:<br>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &lt;type 'exceptions.OSError'&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;&gt; restarting ha-broker and ha-agent normalizes the status but eventually<br>&gt;&gt;&gt;&gt;&gt;&gt; it would become "false" and then return to the result above. hope you<br>&gt;&gt;&gt;&gt;&gt;&gt; guys could help me with this.<br>&gt;&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Hi Jaicel,<br>&gt;&gt;&gt;&gt;&gt; please attach agent.log and broker.log from the host where you trying to<br>&gt;&gt;&gt;&gt;&gt; run hosted-engine --vm-status. I have a feeling that you ran into a<br>&gt;&gt;&gt;&gt;&gt; known problem on gluster - stalled file descriptor, in that case the<br>&gt;&gt;&gt;&gt;&gt; only known solution at this time is to restart the broker &amp; agent as you<br>&gt;&gt;&gt;&gt;&gt; have already found out.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Adding Niels and gluster-devel to troubleshoot from Gluster NFS perspective.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I'd welcome any details on this "stalled file descriptor" problem. Is<br>&gt;&gt;&gt; there a bug filed with some details like logs, sysrq-t and maybe even<br>&gt;&gt;&gt; tcpdumps? If there is an easy way to reproduce this behaviour, I can<br>&gt;&gt;&gt; surely look into it and hopefully come up with some advise or fix.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks,<br>&gt;&gt;&gt; Niels<br>&gt;&gt;&gt;</div></div><br></div></div></body></html>