When I try to deploy the engine using self-hosted-engine technology, I get an 
error at the end of the installation.

[ INFO  ] TASK [Wait for the engine to come up on the target VM]
[ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 120, "changed": true, 
"cmd": ["hosted-engine", "--vm-status", "--json"], "delta": "0:00:00.181846", 
"end": "2022-03-28 15:41:28.853150", "rc": 0, "start": "2022-03-28 
15:41:28.671304", "stderr": "", "stderr_lines": [], "stdout": "{\"1\": 
{\"conf_on_shared_storage\": true, \"live-data\": true, \"extra\": 
\"metadata_parse_version=1\\nmetadata_feature_version=1\\ntimestamp=5537 (Mon 
Mar 28 15:41:20 2022)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=5537 (Mon 
Mar 28 15:41:20 
2022)\\nconf_on_shared_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
 \"hostname\": \"v2.test.ru\", \"host-id\": 1, \"engine-status\": {\"reason\": 
\"failed liveliness check\", \"health\": \"bad\", \"vm\": \"up\", \"detail\": 
\"Up\"}, \"score\": 3400, \"stopped\": false, \"maintenance\": false, 
\"crc32\": \"4d2eeaea\", \"local_conf_timestamp\": 5537, \"host-ts\": 5537}, 
\"global_maintenance\": false}", "stdout_lines": ["{\"1\": {\
 "conf_on_shared_storage\": true, \"live-data\": true, \"extra\": 
\"metadata_parse_version=1\\nmetadata_feature_version=1\\ntimestamp=5537 (Mon 
Mar 28 15:41:20 2022)\\nhost-id=1\\nscore=3400\\nvm_conf_refresh_time=5537 (Mon 
Mar 28 15:41:20 
2022)\\nconf_on_shared_storage=True\\nmaintenance=False\\nstate=EngineStarting\\nstopped=False\\n\",
 \"hostname\": \"v2.test.ru\", \"host-id\": 1, \"engine-status\": {\"reason\": 
\"failed liveliness check\", \"health\": \"bad\", \"vm\": \"up\", \"detail\": 
\"Up\"}, \"score\": 3400, \"stopped\": false, \"maintenance\": false, 
\"crc32\": \"4d2eeaea\", \"local_conf_timestamp\": 5537, \"host-ts\": 5537}, 
\"global_maintenance\": false}"]}

After installation, when checking the condition of the engine, it issues:
Engine status: {"reason": "failed liveliness check", "health": "bad", "vm": 
"up", "detail": "Up"}

After looking at the vdsm.logs, I found that qemu-guest-agent for some reason 
does not connect to the guest VM
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 5400, in 
qemuGuestAgentShutdown
    self._dom.shutdownFlags(libvirt.VIR_DOMAIN_SHUTDOWN_GUEST_AGENT)
  File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line 98, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", 
line 130, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line 92, in 
wrapper
    return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2517, in 
shutdownFlags
    if ret == -1: raise libvirtError ('virDomainShutdownFlags() failed', 
dom=self)
libvirtError: Guest agent is not responding: QEMU guest agent is not connected

During the deployment phase of the engine, qemu-guest-agent was up and running.
When configuring network settings, static addressing is used.
It seems to me that this is due to the fact that the engine receives an IP 
address that does not match the entry in /etc/hosts, but I do not know how to 
fix it. Any help is welcome, I will provide the necessary logs. Thanks
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/WQSYZONY7TMX6A7QWXV67BMTCFIMLIUR/

Reply via email to