The RHV Disaster recovery fails with "TypeError: 'Api' object is not iterable" message
Issue
The RHV Disaster recovery fails with following message
TASK [oVirt.disaster-recovery : Fetch available hosts in data center] ********************************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/ovirt/_ovirt_hosts_facts.py
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_ovirt_hosts_facts_payload_Kns8HW/__main__.py", line 99, in main
) for c in hosts
TypeError: 'Api' object is not iterable
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"all_content": false,
"fetch_nested": false,
"nested_attributes": [],
"pattern": "status=up and datacenter=Master"
}
},
"msg": "'Api' object is not iterable"
}
Environment
Red Hat Virtualization 4.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.