Good day, all.
By degrees, I’ve gotten AWX stood up and running. I’ve also added some test hosts to inventory, added playbooks, and created and successfully run a couple of projects. Here’s some info on my setup:
- CentOS 7 standalone host
- AWX installed from RPM (awx-1.0.6.23-1.el7.x86_64)
- Any requisite dependencies installed
We have both a VMware 6.0 environment and a Spacewalk 2.8 (Satellite equivalent) server. Despite following various how-to’s, I’ve not been able to make either inventory type work. Setting aside Satellite, here is the output I get when I try to sync AWX to VMware:
1.790 INFO Updating inventory 5: Vcenter10
1.801 INFO Reading Ansible inventory source: /opt/awx/embedded/lib/python2.7/site-packages/awx/plugins/inventory/vmware_inventory.py
Traceback (most recent call last):
File “/opt/awx/bin/awx-manage”, line 11, in
sys.exit(manage())
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/init.py”, line 109, in manage
execute_from_command_line(sys.argv)
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py”, line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py”, line 283, in run_from_argv
self.execute(*args, **cmd_options)
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py”, line 330, in execute
output = self.handle(*args, **options)
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 990, in handle
self.is_custom)
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 241, in load_inventory_source
is_custom=is_custom).load()
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 176, in load
data = self.command_to_json(base_args + [‘–list’])
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 159, in command_to_json
self.method, proc.returncode, stdout, stderr))
RuntimeError: ansible-inventory failed (rc=1) with stdout:
stderr:
[WARNING]: * Failed to parse /opt/awx/embedded/lib/python2.7/site-
packages/awx/plugins/inventory/vmware_inventory.py with script plugin:
Inventory script (/opt/awx/embedded/lib/python2.7/site-
packages/awx/plugins/inventory/vmware_inventory.py) had an execution error:
Unable to connect to ESXi server due to [Errno -2] Name or service not known
[WARNING]: Unable to parse /opt/awx/embedded/lib/python2.7/site-
packages/awx/plugins/inventory/vmware_inventory.py as an inventory source
ERROR! No inventory was parsed, please check your configuration and options.
To the best of my knowledge, my “configuration and options” are correct. Well, apparently not. I’m not sure what other information I can provide, but I’m happy to do so. Your help in solving this issue would be greatly appreciated.
Thanks.
Dimitri