Hello!
After updating the version of Ansible
An error occurs when updating Project with AWX.
Please cooperate in the solution.
If you know the solution, please let me know.
〇Environment
・「awx_task」 container
・CentOS Linux release 8.1.1911 (Core)
・ Before updating the Ansible version
Ansible --version
Ansible 2.9.15
Config file = /etc/ansible/ansible.cfg
Configured module search path = [‘/var/lib/awx/.ansible/plugins/modules’,‘/usr/share/ansible/plugins/modules’]
Ansible python module location = /usr/lib/python3.6/site-packages/ansible
Executable location = / usr / bin / ansible
Python version = 3.6.8 (default, Aug 24 2020, 17:57:11) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
・ Before updating the Ansible version
Ansible --version
Ansible [core 2.11.4]
Config file = /etc/ansible/ansible.cfg
Configured module search path = [‘/ home / awx / .ansible / plugins / modules’,‘/ usr / share / ansible / plugins / modules’]
Ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
Ansible collection location = /home/awx/.ansible/collections:/usr/share/ansible/collections
Executable location = / usr / local / bin / ansible
Python version = 3.8.6 (default, Jan 29 2021, 17:38:16) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
Jinja version = 3.0.1
Libyaml = True
〇 Log when the Demo Project is executed
Ansible-playbook [core 2.11.4]
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/var/lib/awx/.ansible/plugins/modules’,‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
ansible collection location = /var/lib/awx/.ansible/collections:/usr/share/ansible/collections
executable location = / usr / local / bin / ansible-playbook
python version = 3.8.6 (default, Jan 29 2021, 17:38:16) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
jinja version = 2.10.1
libyaml = False
Using /etc/ansible/ansible.cfg as config file
Host_list declined parsing / tmp / awx_1066_e_laan03 / inventory / hosts as it did not pass its verify_file () method
Script declined parsing / tmp / awx_1066_e_laan03 / inventory / hosts as it did not pass its verify_file () method
Auto declined parsing / tmp / awx_1066_e_laan03 / inventory / hosts as it did not pass its verify_file () method
Parsed / tmp / awx_1066_e_laan03 / inventory / hosts inventory source with ini plugin
Redirecting (type: modules) ansible.builtin.hg to community.general.hg
ERROR! Unexpected Exception, this is probably a bug: cannot import name’_psutil_linux’ from partially initialized module’psutil’ (most likely due to a circular import) (/ var / lib / awx / venv / ansible / lib / python3.6 /site-packages/psutil/init.py)
The full traceback was:
Traceback (most recent call last):
File “/ usr / local / bin / ansible-playbook”, line 135, in
exit_code = cli.run ()
File “/usr/local/lib/python3.8/site-packages/ansible/cli/playbook.py”, line 137, in run
results = pbex.run ()
File “/usr/local/lib/python3.8/site-packages/ansible/executor/playbook_executor.py”, line 119, in run
self._tqm.load_callbacks ()
File “/usr/local/lib/python3.8/site-packages/ansible/executor/task_queue_manager.py”, line 169, in load_callbacks
self._stdout_callback = callback_loader.get (self._stdout_callback)
File “/usr/local/lib/python3.8/site-packages/ansible/plugins/loader.py”, line 791, in get
return self.get_with_context (name, * args, ** kwargs) .object
File “/usr/local/lib/python3.8/site-packages/ansible/plugins/loader.py”, line 811, in get_with_context
self._module_cache [path] = self._load_module_source (name, path)
File “/usr/local/lib/python3.8/site-packages/ansible/plugins/loader.py”, line 775, in _load_module_source
spec.loader.exec_module (module)
File “”, line 783, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/ansible_runner/callbacks/awx_display.py”, line 44, in
from display_callback import AWXDefaultCallbackModule # noqa
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/ansible_runner/display_callback/init.py”, line 21, in
from. import cleanup # noqa (registers control persistent cleanup)
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/ansible_runner/display_callback/cleanup.py”, line 27, in
import psutil
File “/var/lib/awx/venv/ansible/lib/python3.6/site-packages/psutil/init.py”, line 100, in
from. import _pslinux as _psplatform
File “/var/lib/awx/venv/ansible/lib/python3.6/site-packages/psutil/_pslinux.py”, line 26, in
from. import psutil_linux as cext
ImportError: cannot import name’psutil_linux’ from partially initialized module’psutil’ (most likely due to a circular import) (/ var / lib / awx / venv / ansible / lib / python3.6 / site-packages / psutil / __ init. py)