Failed to add storage domain

Hi! I have installed oVirt using the iso ovirt-node-ng-installer-4.3.2-2019031908.el7. I the did run the Host-engine deployment through Cockpit. I got an error when it tries to create the domain storage. It sucessfully mounted the NFS-share on the host. Bellow is the error I got: 2019-04-14 10:40:38,967+0200 INFO ansible skipped {'status': 'SKIPPED', 'ansible_task': u'Check storage domain free space', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml', 'ansible_type': 'task'} 2019-04-14 10:40:38,967+0200 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7fb6918ad9d0> kwargs 2019-04-14 10:40:39,516+0200 INFO ansible task start {'status': 'OK', 'ansible_task': u'ovirt.hosted_engine_setup : Activate storage domain', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml', 'ansible_type': 'task'} 2019-04-14 10:40:39,516+0200 DEBUG ansible on_any args TASK: ovirt.hosted_engine_setup : Activate storage domain kwargs is_conditional:False 2019-04-14 10:40:41,923+0200 DEBUG var changed: host "localhost" var "otopi_storage_domain_details" type "<type 'dict'>" value: "{ "changed": false, "exception": "Traceback (most recent call last):\n File \"/tmp/ansible_ovirt_storage_domain_payload_xSFxOp/__main__.py\", line 664, in main\n storage_domains_module.post_create_check(sd_id)\n File \"/tmp/ansible_ovirt_storage_domain_payload_xSFxOp/__main__.py\", line 526, in post_create_check\n id=storage_domain.id,\n File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py\", line 3053, in add\n return self._internal_add(storage_domain, headers, query, wait)\n File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\", line 232, in _internal_add\n return future.wait() if wait else future\n File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\", line 55, in wait\n return self._code(response)\n File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\", line 229, in callback\n self._check_fault(response)\n File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\", line 132, in _check_fault\n self._raise_error(response , body)\n File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/service.py\", line 118, in _raise_error\n raise error\nError: Fault reason is \"Operation Failed\". Fault detail is \"[]\". HTTP response code is 400.\n", "failed": true, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[]\". HTTP response code is 400." }" 2019-04-14 10:40:41,924+0200 DEBUG var changed: host "localhost" var "ansible_play_hosts" type "<type 'list'>" value: "[]" 2019-04-14 10:40:41,924+0200 DEBUG var changed: host "localhost" var "play_hosts" type "<type 'list'>" value: "[]" 2019-04-14 10:40:41,924+0200 DEBUG var changed: host "localhost" var "ansible_play_batch" type "<type 'list'>" value: "[]" 2019-04-14 10:40:41,924+0200 ERROR ansible failed {'status': 'FAILED', 'ansible_type': 'task', 'ansible_task': u'Activate storage domain', 'ansible_result': u'type: <type \'dict\'>\nstr: {\'_ansible_parsed\': True, u\'exception\': u\'Traceback (most recent call last):\\n File "/tmp/ansible_ovirt_storage_domain_payload_xSFxOp/__main__.py", line 664, in main\\n storage_domains_module.post_create_check(sd_id)\\n File "/tmp/ansible_ovirt_storage_domain_payload_xSFxOp/__main__.py", line 526', 'task_duration': 2, 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml'} 2019-04-14 10:40:41,924+0200 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7fb691843190> kwargs ignore_errors:None 2019-04-14 10:40:41,928+0200 INFO ansible stats { "ansible_playbook": "/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml", "ansible_playbook_duration": "00:37 Minutes", "ansible_result": "type: <type 'dict'>\nstr: {u'localhost': {'unreachable': 0, 'skipped': 6, 'ok': 23, 'changed': 1, 'failures': 1}}", "ansible_type": "finish", "status": "FAILED" } 2019-04-14 10:40:41,928+0200 INFO SUMMARY: Duration Task Name -------- -------- [ < 1 sec ] Execute just a specific set of steps [ 00:01 ] Force facts gathering [ 00:01 ] Check local VM dir stat [ 00:01 ] Obtain SSO token using username/password credentials [ 00:01 ] Fetch host facts [ < 1 sec ] Fetch cluster ID [ 00:01 ] Fetch cluster facts [ 00:01 ] Fetch Datacenter facts [ < 1 sec ] Fetch Datacenter ID [ < 1 sec ] Fetch Datacenter name [ 00:02 ] Add NFS storage domain [ 00:01 ] Get storage domain details [ 00:01 ] Find the appliance OVF [ 00:01 ] Parse OVF [ < 1 sec ] Get required size [ FAILED ] Activate storage domain 2019-04-14 10:40:41,928+0200 DEBUG ansible on_any args <ansible.executor.stats.AggregateStats object at 0x7fb69404eb90> kwargs Any suggestions on how fix this?

Update: I checked the log-file /var/log/vdsm/vdsm.log and found this message: 2019-04-14 10:40:40,323+0200 INFO (jsonrpc/0) [storage.StorageDomain] sdUUID=f68db244-c11c-4dd1-9001-26a05071b4da (fileSD:540) 2019-04-14 10:40:40,326+0200 INFO (jsonrpc/0) [storage.StoragePool] Creating pool directory '/rhev/data-center/1de9e54a-5e57-11e9-ba26-00163e16c73a' (sp:634) 2019-04-14 10:40:40,327+0200 INFO (jsonrpc/0) [storage.fileUtils] Creating directory: /rhev/data-center/1de9e54a-5e57-11e9-ba26-00163e16c73a mode: None (fileUtils:199) 2019-04-14 10:40:40,327+0200 INFO (jsonrpc/0) [storage.SANLock] Acquiring host id for domain f68db244-c11c-4dd1-9001-26a05071b4da (id=250, async=False) (clusterlock:29 4) 2019-04-14 10:40:41,292+0200 INFO (vmrecovery) [vdsm.api] START getConnectedStoragePoolsList(options=None) from=internal, task_id=61946b04-7df3-410e-8f05-ad8a17a13915 (api:48) 2019-04-14 10:40:41,292+0200 INFO (vmrecovery) [vdsm.api] FINISH getConnectedStoragePoolsList return={'poollist': []} from=internal, task_id=61946b04-7df3-410e-8f05-ad 8a17a13915 (api:54) 2019-04-14 10:40:41,292+0200 INFO (vmrecovery) [vds] recovery: waiting for storage pool to go up (clientIF:709) 2019-04-14 10:40:41,329+0200 INFO (jsonrpc/0) [vdsm.api] FINISH createStoragePool error=Cannot acquire host id: (u'f68db244-c11c-4dd1-9001-26a05071b4da', SanlockExcept ion(19, 'Sanlock lockspace add failure', 'No such device')) from=::ffff:192.168.122.168,33246, flow_id=74a96844, task_id=78af21d4-d8df-463f-b7fe-fe295d0e25ed (api:52) 2019-04-14 10:40:41,329+0200 ERROR (jsonrpc/0) [storage.TaskManager.Task] (Task='78af21d4-d8df-463f-b7fe-fe295d0e25ed') Unexpected error (task:875) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/storage/task.py", line 882, in _run return fn(*args, **kargs) File "<string>", line 2, in createStoragePool File "/usr/lib/python2.7/site-packages/vdsm/common/api.py", line 50, in method ret = func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/storage/hsm.py", line 1003, in createStoragePool leaseParams) File "/usr/lib/python2.7/site-packages/vdsm/storage/sp.py", line 636, in create self._acquireTemporaryClusterLock(msdUUID, leaseParams) File "/usr/lib/python2.7/site-packages/vdsm/storage/sp.py", line 567, in _acquireTemporaryClusterLock msd.acquireHostId(self.id) File "/usr/lib/python2.7/site-packages/vdsm/storage/sd.py", line 889, in acquireHostId self._manifest.acquireHostId(hostId, async) File "/usr/lib/python2.7/site-packages/vdsm/storage/sd.py", line 476, in acquireHostId self._domainLock.acquireHostId(hostId, async) File "/usr/lib/python2.7/site-packages/vdsm/storage/clusterlock.py", line 325, in acquireHostId raise se.AcquireHostIdFailure(self._sdUUID, e) AcquireHostIdFailure: Cannot acquire host id: (u'f68db244-c11c-4dd1-9001-26a05071b4da', SanlockException(19, 'Sanlock lockspace add failure', 'No such device')) 2019-04-14 10:40:41,330+0200 INFO (jsonrpc/0) [storage.TaskManager.Task] (Task='78af21d4-d8df-463f-b7fe-fe295d0e25ed') aborting: Task is aborted: "Cannot acquire host id: (u'f68db244-c11c-4dd1-9001-26a05071b4da', SanlockException(19, 'Sanlock lockspace add failure', 'No such device'))" - code 661 (task:1181) 2019-04-14 10:40:41,330+0200 ERROR (jsonrpc/0) [storage.Dispatcher] FINISH createStoragePool error=Cannot acquire host id: (u'f68db244-c11c-4dd1-9001-26a05071b4da', SanlockException(19, 'Sanlock lockspace add failure', 'No such device')) (dispatcher:83) 2019-04-14 10:40:41,330+0200 INFO (jsonrpc/0) [jsonrpc.JsonRpcServer] RPC call StoragePool.create failed (error 661) in 1.01 seconds (__init__:312) 2019-04-14 10:40:42,882+0200 INFO (jsonrpc/2) [api.host] START getStats() from=::ffff:192.168.122.168,33246 (api:48) 2019-04-14 10:40:42,894+0200 INFO (jsonrpc/2) [vdsm.api] START repoStats(domains=()) from=::ffff:192.168.122.168,33246, task_id=889a11ff-b596-4111-bb96-33427c26a6c5 (api:48) Looks like it has some issue when IPv6 is disabled or am I misunderstanding the log message? Is there some way I can fix that without enabling IPv6 in that case?

Had you solved the problem? I have a similar one and I need more ideas.
participants (2)
-
dboado@betmedia.es
-
thunderlight1@gmail.com