<html><body><div>Seems we should consider not adding the host if already there. Please open a bug.<br>Though I really hope in 3.6 to see this done from the gui<br><br>On Sep 24, 2014 4:23 PM, Stefan Wendler <stefan.wendler@tngtech.com> wrote:<br>><br>> Okay, I'm truncating the previous mails here.... <br>><br>> Davids hi</div><br><div>Okay, I'm truncating the previous mails here....
<br>
<br>Davids hint was the solution. I had the ovirt hosts already added to the
<br>cluster and tried to do the hosted-engine-ha setup on them.
<br>
<br>After removing the hosts from the cluster and putting the data domain to
<br>maintenance mode I was able to deploy an all other nodes. I now have a
<br>HA'd hosted engine. Which can also be migrated \o/
<br>
<br>Maybe that is something that could be stated in the documentation more
<br>clearly?
<br>
<br>Unfortunately now I have a new problem. The agents crash rapidly after
<br>startup. The error is the following:
<br>(/var/log/ovirt-hosted-engine-ha/agent.log)
<br>
<br>AttributeError: 'NoneType' object has no attribute 'iteritems'
<br>
<br>And the whole output here - The agents have been started and I tried a
<br>migration of the hosted engine from ovirt host 1 to host 2 which
<br>succeeded. But the agents crashed afterwards:
<br>
<br>MainThread::INFO::2014-09-24
<br>15:09:24,839::agent::52::ovirt_hosted_engine_ha.agent.agent.Agent::(run)
<br>ovirt-hosted-engine-ha agent 1.1.5 started
<br>MainThread::INFO::2014-09-24
<br>15:09:24,871::hosted_engine::223::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_get_hostname)
<br>Found certificate common name: 10.8.2.101
<br>MainThread::INFO::2014-09-24
<br>15:09:25,081::hosted_engine::367::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_broker)
<br>Initializing ha-broker connection
<br>MainThread::INFO::2014-09-24
<br>15:09:25,082::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Starting monitor ping, options {'addr': '10.8.2.1'}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,083::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Success, id 25293072
<br>MainThread::INFO::2014-09-24
<br>15:09:25,083::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Starting monitor mgmt-bridge, options {'use_ssl': 'true', 'bridge_name':
<br>'ovirtmgmt', 'address': '0'}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,086::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Success, id 25294160
<br>MainThread::INFO::2014-09-24
<br>15:09:25,086::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Starting monitor mem-free, options {'use_ssl': 'true', 'address': '0'}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,088::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Success, id 25293968
<br>MainThread::INFO::2014-09-24
<br>15:09:25,088::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Starting monitor cpu-load-no-engine, options {'use_ssl': 'true',
<br>'vm_uuid': 'e1ca293f-09e0-4d2e-8915-221839af1489', 'address': '0'}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,089::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Success, id 25360400
<br>MainThread::INFO::2014-09-24
<br>15:09:25,089::brokerlink::126::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Starting monitor engine-health, options {'use_ssl': 'true', 'vm_uuid':
<br>'e1ca293f-09e0-4d2e-8915-221839af1489', 'address': '0'}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,091::brokerlink::137::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(start_monitor)
<br>Success, id 25509776
<br>MainThread::INFO::2014-09-24
<br>15:09:25,091::hosted_engine::391::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_broker)
<br>Broker initialized, all submonitors started
<br>MainThread::INFO::2014-09-24
<br>15:09:25,125::hosted_engine::476::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_initialize_sanlock)
<br>Ensuring lease for lockspace hosted-engine, host id 2 is acquired (file:
<br>/rhev/data-center/mnt/10.8.2.12:_volume1_engine-store/e313da39-594c-46b5-95c9-c445889c745c/ha_agent/hosted-engine.lockspace)
<br>MainThread::INFO::2014-09-24
<br>15:09:25,134::state_machine::153::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(refresh)
<br>Global metadata: {'maintenance': False}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,134::state_machine::158::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(refresh)
<br>Host 10.8.2.100 (id 1): {'live-data': True, 'extra':
<br>'metadata_parse_version=1\nmetadata_feature_version=1\ntimestamp=1411564164
<br>(Wed Sep 24 15:09:24
<br>2014)\nhost-id=1\nscore=2400\nmaintenance=False\nstate=EngineUp\n',
<br>'hostname': '10.8.2.100', 'host-id': 1, 'engine-status': {'health':
<br>'good', 'vm': 'up', 'detail': 'up'}, 'score': 2400, 'maintenance':
<br>False, 'host-ts': 1411564164}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,134::state_machine::158::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(refresh)
<br>Host 10.8.2.102 (id 3): {'live-data': False, 'extra':
<br>'metadata_parse_version=1\nmetadata_feature_version=1\ntimestamp=1411562496
<br>(Wed Sep 24 14:41:36
<br>2014)\nhost-id=3\nscore=0\nmaintenance=False\nstate=EngineUnexpectedlyDown\ntimeout=Wed
<br>Sep 24 14:50:24 2014\n', 'hostname': '10.8.2.102', 'host-id': 3,
<br>'engine-status': {'reason': 'vm not running on this host', 'health':
<br>'bad', 'vm': 'down', 'detail': 'unknown'}, 'score': 0, 'maintenance':
<br>False, 'host-ts': 1411562496}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,134::state_machine::161::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(refresh)
<br>Local (id 2): {'engine-health': None, 'bridge': True, 'mem-free': None,
<br>'maintenance': False, 'cpu-load': None, 'gateway': True}
<br>MainThread::INFO::2014-09-24
<br>15:09:25,135::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
<br>Trying: notify time=1411564165.14 type=state_transition
<br>detail=StartState-ReinitializeFSM
<br>hostname='ovirt-node-mapconv2.int.tngtech.com'
<br>MainThread::INFO::2014-09-24
<br>15:09:25,170::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
<br>Success, was notification of state_transition
<br>(StartState-ReinitializeFSM) sent? sent
<br>MainThread::INFO::2014-09-24
<br>15:09:25,383::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
<br>Current state ReinitializeFSM (score: 0)
<br>MainThread::INFO::2014-09-24
<br>15:09:35,409::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
<br>Trying: notify time=1411564175.41 type=state_transition
<br>detail=ReinitializeFSM-EngineDown
<br>hostname='ovirt-node-mapconv2.int.tngtech.com'
<br>MainThread::INFO::2014-09-24
<br>15:09:35,410::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
<br>Success, was notification of state_transition
<br>(ReinitializeFSM-EngineDown) sent? ignored
<br>MainThread::INFO::2014-09-24
<br>15:09:35,627::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
<br>Current state EngineDown (score: 2400)
<br>MainThread::INFO::2014-09-24
<br>15:09:45,652::states::441::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume)
<br>The engine is not running, but we do not have enough data to decide
<br>which hosts are alive
<br>MainThread::INFO::2014-09-24
<br>15:09:45,653::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
<br>Trying: notify time=1411564185.65 type=state_transition
<br>detail=EngineDown-EngineDown hostname='ovirt-node-mapconv2.int.tngtech.com'
<br>MainThread::INFO::2014-09-24
<br>15:09:45,653::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
<br>Success, was notification of state_transition (EngineDown-EngineDown)
<br>sent? ignored
<br>MainThread::INFO::2014-09-24
<br>15:09:45,875::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
<br>Current state EngineDown (score: 2400)
<br>MainThread::CRITICAL::2014-09-24
<br>15:09:55,899::agent::103::ovirt_hosted_engine_ha.agent.agent.Agent::(run) Could
<br>not start ha-agent
<br>Traceback (most recent call last):
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line
<br>97, in run
<br> self._run_agent()
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line
<br>154, in _run_agent
<br> hosted_engine.HostedEngine(self.shutdown_requested).start_monitoring()
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py",
<br>line 307, in start_monitoring
<br> for old_state, state, delay in self.fsm:
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py",
<br>line 125, in next
<br> new_data = self.refresh(self._state.data)
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py",
<br>line 77, in refresh
<br> stats.update(self.hosted_engine.collect_stats())
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py",
<br>line 700, in collect_stats
<br> stats = self.process_remote_metadata(host_id, remote_data)
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py",
<br>line 747, in process_remote_metadata
<br> md['engine-status'] = engine_status(md["engine-status"])
<br> File
<br>"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py",
<br>line 79, in engine_status
<br> in json.loads(status).iteritems()])
<br>AttributeError: 'NoneType' object has no attribute 'iteritems'
<br>
<br>
<br></div></body></html>