AWX projects update error

43 views
Skip to first unread message

room rabosan

unread,
Sep 13, 2021, 6:05:13 AM9/13/21
to Ansible Project
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 <module>
       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 "<frozen importlib._bootstrap_external>", line 783, in exec_module
     File "<frozen importlib._bootstrap>", 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 <module>
       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 <module>
       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 <module>
       import psutil
     File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/psutil/__init__.py", line 100, in <module>
       from. import _pslinux as _psplatform
     File "/var/lib/awx/venv/ansible/lib/python3.6/site-packages/psutil/_pslinux.py", line 26, in <module>
       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)

Dick Visser

unread,
Sep 13, 2021, 8:27:17 AM9/13/21
to ansible...@googlegroups.com
You might have more luck in the dedicated awx mailing list
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9e660bde-1cb3-4da4-99e8-0a75d3821887n%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
Reply all
Reply to author
Forward
0 new messages