-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'NoneType' is not an acceptable base type when executing ansible-runner with process-isolation using a community EE base image #1346
Labels
needs_triage
New item that needs to be triaged
Comments
Editthe error seems to be coming from the fact that I am not sure why the YAML callback plugin is throwing such an error? but my initial suspicion is the use |
phire-tc
pushed a commit
to PhireLink/awx-ee
that referenced
this issue
Dec 23, 2024
I was getting a crash when I tried to run awx-ee using ansible-navigator: ``` Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/ansible/cli/__init__.py", line 646, in cli_executor exit_code = cli.run() ^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/cli/playbook.py", line 155, in run results = pbex.run() ^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/executor/playbook_executor.py", line 117, in run self._tqm.load_callbacks() File "/usr/local/lib/python3.11/site-packages/ansible/executor/task_queue_manager.py", line 198, in load_callbacks self._stdout_callback = callback_loader.get(self._stdout_callback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 861, in get return self.get_with_context(name, *args, **kwargs).object ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 907, in get_with_context self._module_cache[path] = self._load_module_source(resolved_type_name, path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 834, in _load_module_source spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/runner/artifacts/5c4373ae-294c-4355-9717-91217391340d/callback/awx_display.py", line 317, in <module> class CallbackModule(DefaultCallbackModule): TypeError: type 'NoneType' is not an acceptable base type ``` According to ansible/ansible-runner#1346 it might be caused by the yaml output callback so this commit sets an environment variable to set the callback to the default. It also installs the community.general collection.
phire-tc
pushed a commit
to PhireLink/awx-ee
that referenced
this issue
Dec 23, 2024
I was getting a crash when I tried to run awx-ee using ansible-navigator: ``` Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/ansible/cli/__init__.py", line 646, in cli_executor exit_code = cli.run() ^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/cli/playbook.py", line 155, in run results = pbex.run() ^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/executor/playbook_executor.py", line 117, in run self._tqm.load_callbacks() File "/usr/local/lib/python3.11/site-packages/ansible/executor/task_queue_manager.py", line 198, in load_callbacks self._stdout_callback = callback_loader.get(self._stdout_callback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 861, in get return self.get_with_context(name, *args, **kwargs).object ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 907, in get_with_context self._module_cache[path] = self._load_module_source(resolved_type_name, path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 834, in _load_module_source spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/runner/artifacts/5c4373ae-294c-4355-9717-91217391340d/callback/awx_display.py", line 317, in <module> class CallbackModule(DefaultCallbackModule): TypeError: type 'NoneType' is not an acceptable base type ``` According to ansible/ansible-runner#1346 it might be caused by the yaml output callback so this commit sets an environment variable to set the callback to the default. It also installs the community.general collection.
phire-tc
pushed a commit
to PhireLink/awx-ee
that referenced
this issue
Dec 25, 2024
I was getting a crash when I tried to run awx-ee using ansible-navigator: ``` Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/ansible/cli/__init__.py", line 646, in cli_executor exit_code = cli.run() ^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/cli/playbook.py", line 155, in run results = pbex.run() ^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/executor/playbook_executor.py", line 117, in run self._tqm.load_callbacks() File "/usr/local/lib/python3.11/site-packages/ansible/executor/task_queue_manager.py", line 198, in load_callbacks self._stdout_callback = callback_loader.get(self._stdout_callback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 861, in get return self.get_with_context(name, *args, **kwargs).object ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 907, in get_with_context self._module_cache[path] = self._load_module_source(resolved_type_name, path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ansible/plugins/loader.py", line 834, in _load_module_source spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/runner/artifacts/5c4373ae-294c-4355-9717-91217391340d/callback/awx_display.py", line 317, in <module> class CallbackModule(DefaultCallbackModule): TypeError: type 'NoneType' is not an acceptable base type ``` According to ansible/ansible-runner#1346 it might be caused by the yaml output callback so this commit sets an environment variable to set the callback to the default. It also installs the community.general collection.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Host System
Windows Subsystem for Linux 2 with Ubuntu 22.04
Software Versions
Problem Description / Scenario
I am experimenting with
ansible-runner
to run my Runner Project via an Ansible Execution-Environment.At the moment just to get a grip on how things work I am using the
ghcr.io/ansible-community/community-ee-base:latest
imageMy inventory comprises of nothing but the
localhost
(which when executed within the EE should be the container's localhost)Upon executing the
run
command with the respectiveprocess-isolation
parameters via the CLI I get the following error:Project Structure
. ├── README.md ├── ansible.cfg ├── appstack ├── artifacts ├── env ├── inventory ├── project └── tests
The
project
has all the playbooks I need to execute.Code Snippets
debug.yml
A simple ping based debug Playbook used is as follows:
env/envvars
Inventory
content of
hosts
The inventory seems to correct since on the host upon performing
I get all the correct values for the variables and the
localhost
correctlyReproduction Steps
In order to execute this I am currently executing the following command in the terminal:
ansible-runner run . \ --process-isolation \ --process-isolation-executable=docker \ --container-image=ghcr.io/ansible-community/community-ee-base:latest \ -p debug.yml \ -vvv
Upon executing the command I get the error as mentioned above. What seems to be the problem here?
The text was updated successfully, but these errors were encountered: