The VM is up and the ids match, but it fail when I try anything.
hosted-engine --vm-shutdown
Command VM.shutdown with args {'vmID':
'350a168a-beb9-4417-9fbd-5a8121863a57', 'delay': '120',
'message': 'VM is shutting down!'} failed:
(code=1, message=Virtual machine does not exist: {'vmId':
'350a168a-beb9-4417-9fbd-5a8121863a57'})
virsh list
Id Name State
------------------------------
2 HostedEngine running
virsh domuuid HostedEngine
350a168a-beb9-4417-9fbd-5a8121863a57
MainThread::ERROR::2021-06-17
09:58:54,537::hosted_engine::953::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_stop_engine_vm)
Failed to stop engine VM: Command VM.destroy with args {'vmID':
'350a168a-beb9-4417-9fbd-5a8121863a57'} failed:
(code=1, message=Virtual machine does not exist: {'vmId':
'350a168a-beb9-4417-9fbd-5a8121863a57'})
MainThread::INFO::2021-06-17
09:58:54,563::brokerlink::73::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
Success, was notification of state_transition (EngineForceStop-ReinitializeFSM) sent?
ignored
MainThread::INFO::2021-06-17
09:58:54,569::hosted_engine::517::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitoring_loop)
Current state ReinitializeFSM (score: 0)
MainThread::INFO::2021-06-17
09:59:04,654::brokerlink::73::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
Success, was notification of state_transition (ReinitializeFSM-EngineDown) sent? ignored
MainThread::INFO::2021-06-17
09:59:04,738::hosted_engine::517::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitoring_loop)
Current state EngineDown (score: 3400)
MainThread::INFO::2021-06-17
09:59:13,759::states::472::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume)
Engine down and local host has best score (3400), attempting to start engine VM
MainThread::INFO::2021-06-17
09:59:13,796::brokerlink::73::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
Success, was notification of state_transition (EngineDown-EngineStart) sent? ignored
MainThread::INFO::2021-06-17
09:59:13,888::hosted_engine::517::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitoring_loop)
Current state EngineStart (score: 3400)
MainThread::INFO::2021-06-17
09:59:13,903::hosted_engine::895::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_clean_vdsm_state)
Ensuring VDSM state is clear for engine VM
MainThread::INFO::2021-06-17
09:59:13,909::hosted_engine::907::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_clean_vdsm_state)
Vdsm state for VM clean
MainThread::INFO::2021-06-17
09:59:13,909::hosted_engine::853::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)
Starting vm using `/usr/sbin/hosted-engine --vm-start`
MainThread::INFO::2021-06-17
09:59:14,444::hosted_engine::862::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)
stdout: VM in WaitForLaunch
MainThread::INFO::2021-06-17
09:59:14,444::hosted_engine::863::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)
stderr: Command VM.getStats with args {'vmID':
'350a168a-beb9-4417-9fbd-5a8121863a57'} failed:
(code=1, message=Virtual machine does not exist: {'vmId':
'350a168a-beb9-4417-9fbd-5a8121863a57'})
MainThread::INFO::2021-06-17
09:59:14,444::hosted_engine::875::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_start_engine_vm)
Engine VM started on localhost
MainThread::INFO::2021-06-17
09:59:14,472::brokerlink::73::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
Success, was notification of state_transition (EngineStart-EngineStarting) sent? ignored
MainThread::INFO::2021-06-17
09:59:14,479::hosted_engine::517::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitoring_loop)
Current state EngineStarting (score: 3400)