I am getting stack traces when running the openstack plugin:
2017-09-29 03:44:25,668 INFO awx.main.commands.inventory_import Updating inventory 2: Rackspace
2017-09-29 03:44:25,681 DEBUG awx.main.commands.inventory_import Using system install of ansible-inventory CLI: /usr/bin/ansible-inventory 2
017-09-29 03:44:25,681 INFO awx.main.commands.inventory_import Reading Ansible inventory source: /usr/lib/python2.7/site-packages/awx/plugins/inventory/openstack.py
Traceback (most recent call last): File “/usr/bin/awx-manage”, line 9, in load_entry_point(‘awx==1.0.0.561’, ‘console_scripts’, ‘awx-manage’)()
File “/usr/lib/python2.7/site-packages/awx/init.py”, line 107, in manage execute_from_command_line(sys.argv)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management/init.py”, line 354, in execute_from_command_line utility.execute()
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management/init.py”, line 346, in execute self.fetch_command(subcommand).run_from_argv(self.argv)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management/base.py”, line 394, in run_from_argv self.execute(*args, **cmd_options)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management/base.py”, line 445, in execute output = self.handle(*args, **options)
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/management/base.py”, line 661, in handle return self.handle_noargs(**options)
File “/usr/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 979, in handle_noargs self.is_custom)
File “/usr/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 234, in load_inventory_source is_custom=is_custom).load()
File “/usr/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 179, in load data = self.command_to_json(base_args + [‘–list’])
File “/usr/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 163, in command_to_json self.method, proc.returncode, stdout, stderr))
RuntimeError: ansible-inventory failed (rc=4) with stdout:
stderr:
ERROR! Could not parse inventory source /usr/lib/python2.7/site-packages/awx/plugins/inventory/openstack.py with available plugins:
Plugin script failed: Inventory script (/usr/lib/python2.7/site-packages/awx/plugins/inventory/openstack.py) had an execution error: Error fetching server list on devstack::
Plugin ini failed: /usr/lib/python2.7/site-packages/awx/plugins/inventory/openstack.py:48: Expected key=value host variable assignment, got: argparse
I think this is because the Openstack inventory plugin imports packages os_client_config and shade and these are installed in the Docker container. I am not having any success in adding these either manually through the container shell, or via the install script.