I want to import an inventory file into AWX 19.05 but the command fails:
$ kubectl cp /tmp/inventory awx/awx-demo-786447d7bc-h4jhj:/tmp/inventory -c awx-demo-task
$ awx-manage inventory_import --source=/tmp/inventory --inventory-id=1 --overwrite
sh-4.4$ awx-manage inventory_import --source=/tmp/inventory --inventory-id=1 --overwrite
1.355 INFO Updating inventory 1: Demo Inventory
2021-12-15 12:57:36,150 DEBUG [-] awx.analytics.job_lifecycle inventoryupdate-24 created
1.404 INFO Reading Ansible inventory source: /tmp/inventory
Traceback (most recent call last):
File “/usr/bin/awx-manage”, line 8, in
sys.exit(manage())
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/init.py”, line 171, in manage
execute_from_command_line(sys.argv)
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/django/core/management/init.py”, line 381, in execute_from_command_line
utility.execute()
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/django/core/management/init.py”, line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/django/core/management/base.py”, line 323, in run_from_argv
self.execute(*args, **cmd_options)
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/django/core/management/base.py”, line 364, in execute
output = self.handle(*args, **options)
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/management/commands/inventory_import.py”, line 854, in handle
data = AnsibleInventoryLoader(source=source, verbosity=verbosity).load()
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/management/commands/inventory_import.py”, line 118, in load
return self.command_to_json(base_args)
File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/management/commands/inventory_import.py”, line 96, in command_to_json
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File “/usr/lib64/python3.8/subprocess.py”, line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib64/python3.8/subprocess.py”, line 1706, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘podman’
I have tried all kinds of combinations of this command and no matter what I put the error is always the same, even when I call the file podman?