Hi,
I’m having trouble getting the ovirt_vm module to import an ova image, i’m always getting the following error:
Traceback (most recent call last):
File “/tmp/ansible_ovirt_vm_payload_upn728mm/ansible_ovirt_vm_payload.zip/ansible/modules/cloud/ovirt/ovirt_vm.py”, line 2466, in main
File “/tmp/ansible_ovirt_vm_payload_upn728mm/ansible_ovirt_vm_payload.zip/ansible/modules/cloud/ovirt/ovirt_vm.py”, line 2283, in import_vm
File “/home/xxxxxx/.local/lib/python3.6/site-packages/ovirtsdk4/services.py”, line 10453, in add
return self.internal_add(import, headers, query, wait)
File “/home/xxxxxx/.local/lib/python3.6/site-packages/ovirtsdk4/service.py”, line 232, in _internal_add
return future.wait() if wait else future
File “/home/xxxxxx/.local/lib/python3.6/site-packages/ovirtsdk4/service.py”, line 55, in wait
return self._code(response)
File “/home/xxxxxx/.local/lib/python3.6/site-packages/ovirtsdk4/service.py”, line 229, in callback
self._check_fault(response)
File “/home/xxxxxxx/.local/lib/python3.6/site-packages/ovirtsdk4/service.py”, line 130, in _check_fault
body = self._internal_read_body(response)
File “/home/xxxxxxx/.local/lib/python3.6/site-packages/ovirtsdk4/service.py”, line 312, in _internal_read_body
self._raise_error(response)
File “/home/xxxxxxx/.local/lib/python3.6/site-packages/ovirtsdk4/service.py”, line 118, in _raise_error
raise error
ovirtsdk4.NotFoundError: HTTP response code is 404.
This is my task:
- name: Import {{ vm_name }} as OVA
ovirt_vm:
auth: ‘{{ unb_revm_auth }}’
name: ‘{{ vm_name }}’
clone: Yes
cluster: ‘XXXXXX’
host: ‘{{ import_host }}’
timeout: 3600
poll_interval: 30
cluster_mappings: - source_name: ‘xxxx’
dest_name: ‘xxxx’
domain_mappings: - source_name: ‘xxxxxx’
dest_name: ‘xxxxxx’
vnic_profile_mappings: - source_network_name: ‘vlan4’
source_profile_name: ‘vlan4’
target_profile_id: ‘63e8a132-4bdf-40a7-b0e9-faf83c859cce’
reassign_bad_macs: True
kvm:
name: ‘{{ vm_name }}’
url: ‘ova://{{ shared_folder}}/{{ vm_name }}.ova’
storage_domain: ‘xxxxxxx’
register: _import_result
Do i miss something or any idea what’s wrong?
Thanks for any help/hint.
regards,
arsene