Greetings,
If I create an Inventory in AWX, using the “Microsoft Axure-RM” source which inventory plugin gets used?
bash-4.2# find / -name azure_rm.py -ls
39186676 32 -rw-r–r-- 1 root root 30038 Oct 17 18:11 /usr/lib/python2.7/site-packages/ansible/plugins/inventory/azure_rm.py
20799869 40 -rwxr-xr-x 1 root root 40840 Nov 19 02:27 /var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/plugins/inventory/azure_rm.py
bash-4.2#
There are two on the machine, and it looks to me like the second one is the “awx inventory plugin” but when I look at the logs for an inventory sync I see a log that looks like this:
2.345 INFO Updating inventory 9: Azure-Rm
2
[WARNING]: jinja2_native requires Jinja 2.10 and above. Version detected:
3
2.7.2. Falling back to default.
4
5
2.758 INFO Reading Ansible inventory source: /tmp/awx_538_btkpydyn/azure_rm.yml
6
2.760 INFO Using VIRTUAL_ENV: /var/lib/awx/venv/ansible
7
2.760 INFO Using PATH: /var/lib/awx/venv/ansible/bin:/var/lib/awx/venv/awx/bin:/var/lib/awx/venv/awx/bin:/var/lib/awx/venv/awx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
8
2.760 INFO Using PYTHONPATH: /var/lib/awx/venv/ansible/lib/python2.7/site-packages:
9
10.223 ERROR ansible-inventory 2.8.6
10
10.223 ERROR config file = /etc/ansible/ansible.cfg
11
10.223 ERROR configured module search path = [u’/var/lib/awx/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
12
10.223 ERROR ansible python module location = /usr/lib/python2.7/site-packages/ansible
13
10.223 ERROR executable location = /usr/bin/ansible-inventory
14
10.223 ERROR python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
15
10.223 ERROR Using /etc/ansible/ansible.cfg as config file
16
10.223 ERROR Parsed /tmp/awx_538_btkpydyn/azure_rm.yml inventory source with auto plugin
17
10.223 ERROR [WARNING]: Found both group and host with same name: wn70005
18
10.223 ERROR
19
10.224 INFO Processing JSON output…
20
10.226 INFO Loaded 25 groups, 16 hosts
21
2019-11-07 18:57:23,817 DEBUG awx.main.models.inventory Going to update inventory computed fields, pk=9
22
2019-11-07 18:57:24,187 DEBUG awx.main.models.inventory Finished updating inventory computed fields, pk=9, in 0.368 seconds
23
11.130 INFO Inventory import completed for Azure RM PSJH Core Infrastructure Prod in 8.8s
So, what is the difference between the two plugins and why does the AWX one even exist?
Is there a design document somewhere that actually talks about this confusing structure?
Adam