Open mattpoel opened 2 years ago
oVirt / OLVM version is 4.3.10.4-1.0.22.el7
Actually the disk even gets assigned and it is unclear why this internal engine error is raised:
Same/similar issue here. ovirt_disk creates the disk, but i get the following error:
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_ovirt.ovirt.ovirt_disk_payload_0wr1xxin/ansible_ovirt.ovirt.ovirt_disk_p
File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py", line 39273, in refresh_lun
return self._internal_action(action, 'refreshlun', None, headers, query, wait)
File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 299, in _internal_acti
return future.wait() if wait else future
File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 55, in wait
return self._code(response)
File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 296, in callback
self._check_fault(response)
File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 134, in _check_fault
self._raise_error(response, body.fault)
File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 118, in _raise_error
raise error
ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Internal Engine Error]
It seems that there are problems with synchronizing the LUNs. In the events of the engine the message appears: Direct LUN synchronization started
Here is my ansible task:
- name: Create Direct LUN Disk
ovirt.ovirt.ovirt_disk:
auth: "{{ ovirt_auth }}"
name: "{{ vm_name }}_fc1"
host: {{ direct_lun_host }}
logical_unit:
id: {{ lun_id }}
storage_type: fcp
SUMMARY
We have a playbook to add / remove direct LUNs to VMs in ovirt. Since an update of ovirt, this process is no longer properly working and fails with an internal error without details:
ovirt_disk is updated to the latest version (or the whole ovirt-ansible-collection to be specific).
COMPONENT NAME
ovirt.ovirt.ovirt_disk
STEPS TO REPRODUCE
EXPECTED RESULTS
LUN gets configured as a direct LUN and attached to the VM.
ACTUAL RESULTS
ovirt_disk creates the disk, but it doesn't get attached to the VM. Following error is raised: