
On Fri, Jan 11, 2019 at 4:21 PM Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
4) it fails here at final stages of the local vm engine setup during host activation:
Searching around I found these two bugzillas for 4.2 regarding ovirt-imageio-daemon related to missing dir/files in /var/run/vdsm because of errors in systemd-tmpfiles-setup.service startup (unknown vdsm user and kvm group) https://bugzilla.redhat.com/show_bug.cgi?id=1576479 https://bugzilla.redhat.com/show_bug.cgi?id=1639667 So the temporary workaround was to pre-create them before running the setup mkdir /var/run/vdsm chmod 755 /var/run/vdsm chown vdsm.kvm /var/run/vdsm mkdir /var/run/vdsm/dhclientmon chmod 755 /var/run/vdsm/dhclientmon/ chown vdsm.kvm /var/run/vdsm/dhclientmon/ mkdir /var/run/vdsm/trackedInterfaces chmod 755 /var/run/vdsm/trackedInterfaces/ chown vdsm.kvm /var/run/vdsm/trackedInterfaces/ mkdir /var/run/vdsm/v2v chmod 700 /var/run/vdsm/v2v chown vdsm.kvm /var/run/vdsm/v2v/ mkdir /var/run/vdsm/vhostuser chmod 755 /var/run/vdsm/vhostuser/ chown vdsm.kvm /var/run/vdsm/vhostuser/ mkdir /var/run/vdsm/payload chmod 755 /var/run/vdsm/payload/ chown vdsm.kvm /var/run/vdsm/payload/ Then a "systemctl start ovirt-imageio-daemon" completes ok. Host addition completed ok. The problem now is at final step where I get [ INFO ] TASK [oVirt.hosted-engine-setup : debug] [ INFO ] ok: [localhost] [ INFO ] TASK [oVirt.hosted-engine-setup : Fetch Datacenter ID] [ INFO ] ok: [localhost] [ INFO ] TASK [oVirt.hosted-engine-setup : Fetch Datacenter name] [ INFO ] ok: [localhost] [ INFO ] TASK [oVirt.hosted-engine-setup : Add NFS storage domain] [ INFO ] skipping: [localhost] [ INFO ] TASK [oVirt.hosted-engine-setup : Add glusterfs storage domain] [ ERROR ] Error: Fault reason is "Operation Failed". Fault detail is "[Invalid parameter]". HTTP response code is 400. [ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Invalid parameter]\". HTTP response code is 400."} In /var/log/ovirt-hosted-engine-setup I see file ovirt-hosted-engine-setup-ansible-create_storage_domain-2019011182910-ahbxsh.log with 2019-01-11 18:29:58,486+0100 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted -engine-setup : Add glusterfs storage domain', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/create_storage_domain.yml', 'ansible_type': 'task'} 2019-01-11 18:29:58,486+0100 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : Add glusterfs storage domain kwargs is_conditional:False 2019-01-11 18:30:12,738+0100 DEBUG var changed: host "localhost" var "otopi_storage_domain_details_gluster" type "<type 'dict'>" value: "{ "changed": false, "exception": "Traceback (most recent call last):\n File \"/tmp/ansible_ovirt_storage_domain_payload_WLrUHW/__main__.py\", line 682, in main\n ret = storage_domains_module.create()\n File \"/tmp/ansible_ovirt_storage_domain_payload_WLrUHW/ansible_ovirt_storage_domain_payload.zip/ansible/module_utils/ovirt.py\", line 587, in create\n **kwargs\n File \"/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py\", line 24225, 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 \"[Invalid parameter]\". HTTP response code is 400.\n", "failed": true, "msg": "Fault reason is \"Operation Failed\". Fault detail is \"[Invalid parameter]\". HTTP response code is 400." }" 2019-01-11 18:30:12,738+0100 DEBUG var changed: host "localhost" var "ansible_play_hosts" type "<type 'list'>" value: "[]" 2019-01-11 18:30:12,739+0100 DEBUG var changed: host "localhost" var "play_hosts" type "<type 'list'>" value: "[]" 2019-01-11 18:30:12,739+0100 DEBUG var changed: host "localhost" var "ansible_play_batch" type "<type 'list'>" value: "[]" 2019-01-11 18:30:12,739+0100 ERROR ansible failed {'status': 'FAILED', 'ansible_type': 'task', 'ansible_task': u'Add glusterfs 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_WLrUHW/__main__.py", line 682, in main\\n ret = storage_domains_module.create()\\n File "/tmp/ansible_ovirt_storage_domain_payload_WLrUHW/ansible_ovirt_storage_domain_pay', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/create_storage_domain.yml'} 2019-01-11 18:30:12,739+0100 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7fa52df1f3d0> kwargs ignore_errors:None 2019-01-11 18:30:12,742+0100 INFO ansible stats {'status': 'FAILED', 'ansible_playbook_duration': 61.686781, 'ansible_result': u"type: <type 'dict'>\nstr: {u'localhost': {'unreachable': 0, 'skipped': 10, 'ok': 14, 'changed': 0, 'failures': 1}}", 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/create_storage_domain.yml', 'ansible_type': 'finish'} 2019-01-11 18:30:12,742+0100 DEBUG ansible on_any args <ansible.executor.stats.AggregateStats object at 0x7fa530118b50> kwargs Gianluca