hosted-engine cannot can't communicate with vm

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)

Hi Harry, In case you're in a similar position to me, and simply looking to stand up your hosted-engine just to migrate to a different hypervisor, I'm going through a similar situation where I wasn't able to get my hosted-engine to boot. Below is my thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/GUFN2F6WRLH772P... I've made some progress with exporting the VMs using the method I've linked in my responses, albeit the process has been slow and painful.

Hi Timothy, My hostedengine vm is running ok via virsh, libvirt and vdsm but my only issue is that the ovirt-ha-agent on the hosts can't work with the vm anymore. Did you get your vm up and running?

Yeah, but his engine is up.Usually the engine talks with the Hypervisor via ssh (root) to the vdsmd on the Hypervisor. Are you sure that the vdsmd service is not throwing any errors on the host ? Best Regards,Strahil Nikolov Hi Harry, In case you're in a similar position to me, and simply looking to stand up your hosted-engine just to migrate to a different hypervisor, I'm going through a similar situation where I wasn't able to get my hosted-engine to boot. Below is my thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/GUFN2F6WRLH772P... I've made some progress with exporting the VMs using the method I've linked in my responses, albeit the process has been slow and painful. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/N6DIKXSDV6ALBD...

I think is was because the VM was not running from "/run/vdsm/storage/"
participants (3)
-
Harry O
-
Strahil Nikolov
-
timothy.dilbert@bmt.ky