I’ve got a fresh install of 7.0.0 that I am trying to use with my vCenter. I’ve got the inventory source set up, but it’s taking over 30 minutes to load. Can anyone confirm is this is typical, or is something wrong?
I’ve tried using instance filters to reduce the number of hosts, but I can’t get them working. There are no functional examples anywhere, and with a 30 minute runtime debugging is a bit slow.
Here’s the job output of a (slowly) working sync
2.567 INFO Updating inventory 2: vCenter
3.007 INFO Reading Ansible inventory source: /var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/plugins/inventory/vmware_inventory.py
3.009 INFO Using VIRTUAL_ENV: /var/lib/awx/venv/ansible
3.009 INFO Using PATH: /var/lib/awx/venv/ansible/bin:/var/lib/awx/venv/awx/bin:/opt/rh/rh-postgresql10/root/usr/bin:/var/lib/awx/venv/awx/bin:/var/lib/awx/venv/awx/bin:/opt/rh/rh-postgresql10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
3.009 INFO Using PYTHONPATH: /var/lib/awx/venv/ansible/lib/python2.7/site-packages:
2036.709 ERROR ansible-inventory 2.8.5
2036.709 ERROR config file = /etc/ansible/ansible.cfg
2036.709 ERROR configured module search path = [u’/var/lib/awx/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
2036.709 ERROR ansible python module location = /usr/lib/python2.7/site-packages/ansible
2036.710 ERROR executable location = /usr/bin/ansible-inventory
2036.710 ERROR python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
2036.710 ERROR Using /etc/ansible/ansible.cfg as config file
2036.710 ERROR Parsed /var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/plugins/inventory/vmware_inventory.py inventory source with script plugin
2036.840 INFO Processing JSON output…
2036.853 INFO Loaded 22 groups, 446 hosts
2019-10-15 15:45:28,695 DEBUG awx.main.models.inventory Going to update inventory computed fields, pk=2
2019-10-15 15:45:31,681 DEBUG awx.main.models.inventory Finished updating inventory computed fields, pk=2, in 2.985 seconds
2044.115 INFO Inventory import completed for vcenter in 2041.6s
Mike