Have you checked if the initiator name is proper IQN and unique ?

Best Regards,
Strahil Nikolov

Hello,

hope, you are doing well. I try to install a new hosted engine on my environment to switch the storage this engine. I use following command to deploy the instance:

  hosted-engine --deploy --4 --ansible-extra-vars=he_offline_deployment=true

Everything works fine, except the initialization of lockspace volume. Here I get:

```
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Remove temporary entry in /etc/hosts for the local VM]
[ INFO  ] changed: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Set the name for add_host]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Fetch the value of HOST_KEY_CHECKING]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Get the username running the deploy]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Register the engine FQDN as a host]
[ INFO  ] changed: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Start ovirt-ha-broker service on the host]
[ INFO  ] changed: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Initialize lockspace volume]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Workaround for ovirt-ha-broker start failures]
[ INFO  ] changed: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Initialize lockspace volume]
[ ERROR ] fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true, "cmd": ["hosted-engine", "--reinitialize-lock
space", "--force"], "delta": "0:00:00.269920", "end": "2024-03-20 14:43:00.366557", "msg": "non-zero return code", "rc"
: 1, "start": "2024-03-20 14:43:00.096637", "stderr": "Traceback (most recent call last):\n  File \"/usr/lib64/python3.
6/runpy.py\", line 193, in _run_module_as_main\n    \"__main__\", mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\",
line 85, in _run_code\n    exec(code, run_globals)\n  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_setup
/reinitialize_lockspace.py\", line 30, in <module>\n    ha_cli.reset_lockspace(force)\n  File \"/usr/lib/python3.6/site
-packages/ovirt_hosted_engine_ha/client/client.py\", line 286, in reset_lockspace\n    stats = broker.get_stats_from_st
orage()\n  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\", line 148, in get_stats_f
rom_storage\n    result = self._proxy.get_stats()\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1112, in __ca
ll__\n    return self.__send(self.__name, args)\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1452, in __requ
est\n    verbose=self.__verbose\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1154, in request\n    return se
lf.single_request(host, handler, request_body, verbose)\n  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1166, i
n single_request\n    http_conn = self.send_request(host, handler, request_body, verbose)\n  File \"/usr/lib64/python3.
6/xmlrpc/client.py\", line 1279, in send_request\n    self.send_content(connection, request_body)\n  File \"/usr/lib64/
python3.6/xmlrpc/client.py\", line 1309, in send_content\n    connection.endheaders(request_body)\n  File \"/usr/lib64/
python3.6/http/client.py\", line 1268, in endheaders\n    self._send_output(message_body, encode_chunked=encode_chunked
)\n  File \"/usr/lib64/python3.6/http/client.py\", line 1044, in _send_output\n    self.send(msg)\n  File \"/usr/lib64/
python3.6/http/client.py\", line 982, in send\n    self.connect()\n  File \"/usr/lib/python3.6/site-packages/ovirt_host
ed_engine_ha/lib/unixrpc.py\", line 76, in connect\n    self.sock.connect(base64.b16decode(self.host))\nFileNotFoundErr
or: [Errno 2] No such file or directory", "stderr_lines": ["Traceback (most recent call last):", "  File \"/usr/lib64/p
ython3.6/runpy.py\", line 193, in _run_module_as_main", "    \"__main__\", mod_spec)", "  File \"/usr/lib64/python3.6/r
unpy.py\", line 85, in _run_code", "    exec(code, run_globals)", "  File \"/usr/lib/python3.6/site-packages/ovirt_host
ed_engine_setup/reinitialize_lockspace.py\", line 30, in <module>", "    ha_cli.reset_lockspace(force)", "  File \"/usr
/lib/python3.6/site-packages/ovirt_hosted_engine_ha/client/client.py\", line 286, in reset_lockspace", "    stats = bro
ker.get_stats_from_storage()", "  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/brokerlink.py\", l
ine 148, in get_stats_from_storage", "    result = self._proxy.get_stats()", "  File \"/usr/lib64/python3.6/xmlrpc/clie
nt.py\", line 1112, in __call__", "    return self.__send(self.__name, args)", "  File \"/usr/lib64/python3.6/xmlrpc/cl
ient.py\", line 1452, in __request", "    verbose=self.__verbose", "  File \"/usr/lib64/python3.6/xmlrpc/client.py\", l
ine 1154, in request", "    return self.single_request(host, handler, request_body, verbose)", "  File \"/usr/lib64/pyt
hon3.6/xmlrpc/client.py\", line 1166, in single_request", "    http_conn = self.send_request(host, handler, request_bod
y, verbose)", "  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1279, in send_request", "    self.send_content(co
nnection, request_body)", "  File \"/usr/lib64/python3.6/xmlrpc/client.py\", line 1309, in send_content", "    connecti
on.endheaders(request_body)", "  File \"/usr/lib64/python3.6/http/client.py\", line 1268, in endheaders", "    self._se
nd_output(message_body, encode_chunked=encode_chunked)", "  File \"/usr/lib64/python3.6/http/client.py\", line 1044, in
_send_output", "    self.send(msg)", "  File \"/usr/lib64/python3.6/http/client.py\", line 982, in send", "    self.co
nnect()", "  File \"/usr/lib/python3.6/site-packages/ovirt_hosted_engine_ha/lib/unixrpc.py\", line 76, in connect", "
  self.sock.connect(base64.b16decode(self.host))", "FileNotFoundError: [Errno 2] No such file or directory"], "stdout":
"", "stdout_lines": []}
```
And I dont know, what is the reason. I zeroed the iscsi target, rebooted the hypervisor and updated all software packages.

```
[root@hypervisor01 ~]# rpm -qa|grep ovirt-host
ovirt-hosted-engine-setup-2.6.5-1.el8.noarch
ovirt-host-dependencies-4.5.0-3.el8.x86_64
ovirt-hosted-engine-ha-2.5.0-1.el8.noarch
ovirt-host-4.5.0-3.el8.x86_64
```
I tried the deployment without the ansible arguments. Unfortunately, the same error comes up. What can I do to solve this?

Thanks very much
balu
_______________________________________________
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/JAM25WIFO2ZPEXFAH2PKUUTIREHPYF7R/