The RHV Disaster recovery fails with "TypeError: 'Api' object is not iterable" message

Solution Verified - Updated -


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/
The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_ovirt_hosts_facts_payload_Kns8HW/", 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"


Red Hat Virtualization 4.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In