How to configure ovirt_insecure to a Red Hat Virtualization Source Inventory on Ansible Tower?

Solution Verified - Updated -

Issue

  • How to configure ovirt_insecure to a Red Hat Virtualization Source Inventory on Ansible Tower?
  • RHV source inventory synchronization fails with the error below:
...SNIP...
[WARNING]:  * Failed to parse /tmp/awx_147960_510wqaq3/ovirt.yml with auto
plugin: Error while sending HTTP request: (60, "Peer's certificate issuer has
been marked as not trusted by the user.")
  File "/usr/lib/python2.7/site-packages/ansible/inventory/manager.py", line 280, in parse_source
    plugin.parse(self._inventory, self._loader, source, cache=cache)
  File "/usr/lib/python2.7/site-packages/ansible/plugins/inventory/auto.py", line 58, in parse
    plugin.parse(inventory, loader, path, cache=cache)
  File "/var/lib/awx/vendor/inventory_collections/ansible_collections/ovirt/ovirt/plugins/inventory/ovirt.py", line 263, in parse
    source_data = self._query(query_filter=query_filter)
  File "/var/lib/awx/vendor/inventory_collections/ansible_collections/ovirt/ovirt/plugins/inventory/ovirt.py", line 149, in _query
    return [self._get_dict_of_struct(host) for host in self._get_hosts(query_filter=query_filter)]
  File "/var/lib/awx/vendor/inventory_collections/ansible_collections/ovirt/ovirt/plugins/inventory/ovirt.py", line 160, in _get_hosts
    return vms_service.list()
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/services.py", line 35966, in list
    return self._internal_get(headers, query, wait)
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/service.py", line 202, in _internal_get
    context = self._connection.send(request)
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/__init__.py", line 371, in send
    return self.__send(request)
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/__init__.py", line 389, in __send
    self.authenticate()
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/__init__.py", line 385, in authenticate
    self.__parse_error(e)
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/__init__.py", line 933, in __parse_error
    six.reraise(clazz, clazz(error_msg), sys.exc_info()[2])
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/__init__.py", line 382, in authenticate
    self._sso_token = self._get_access_token()
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/__init__.py", line 618, in _get_access_token
    sso_response = self._get_sso_response(self._sso_url, post_data)
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/ovirtsdk4/__init__.py", line 695, in _get_sso_response
    curl.perform()
[WARNING]: Unable to parse /tmp/awx_147960_510wqaq3/ovirt.yml as an inventory
source
ERROR! No inventory was parsed, please check your configuration and options.

How do I get the inventory to sync.  I've noticed documentation that states

Note: Starting in Ansible Tower 3.7, Red Hat Virtualization (ovirt) inventory source requests are secure by default. To
change this default setting, set the key ovirt_insecure to true in source_variables, which is only available
from the API details of the inventory source at the /api/v2/inventory_sources/N/ endpoint.

Environment

  • Red Hat Ansible Tower 3.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content