This repository is being archived. See https://github.com/ansible-community/presentations and https://github.com/ansible-community/meetings for the new locations
The full traceback is:
Traceback (most recent call last):
File "/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py", line 102, in
_ansiballz_main()
File "/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py", line 37, in invoke_module
from ansible.module_utils import basic
File "/tmp/ansible_ios_command_payload_417s0_dz/ansible_ios_command_payload.zip/ansible/module_utils/basic.py", line 139, in
ImportError: cannot import name '_PERM_BITS'
fatal: [x.x.x.x]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py\", line 102, in \n _ansiballz_main()\n File \"/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py\", line 37, in invoke_module\n from ansible.module_utils import basic\n File \"/tmp/ansible_ios_command_payload_417s0_dz/ansible_ios_command_payload.zip/ansible/module_utils/basic.py\", line 139, in \nImportError: cannot import name '_PERM_BITS'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
ISSUE TYPE
SUMMARY
Ansible AWX fails to run a play on cisco devices with the following error: ImportError: cannot import name '_PERM_BITS
ENVIRONMENT
STEPS TO REPRODUCE
Install ansible install docker install docker-compose run play using the cisco ios_command module
EXPECTED RESULTS
Play logs into router and runs the command
ACTUAL RESULTS
The play fails
ADDITIONAL INFORMATION
ansible-playbook 2.9.13 config file = /tmp/awx_23_w8x5irmh/project/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
The full traceback is: Traceback (most recent call last): File "/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py", line 102, in
_ansiballz_main()
File "/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py", line 37, in invoke_module
from ansible.module_utils import basic
File "/tmp/ansible_ios_command_payload_417s0_dz/ansible_ios_command_payload.zip/ansible/module_utils/basic.py", line 139, in
ImportError: cannot import name '_PERM_BITS'
fatal: [x.x.x.x]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py\", line 102, in \n _ansiballz_main()\n File \"/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/var/lib/awx/.ansible/tmp/ansible-local-4901bzlx1bp/ansible-tmp-1600679296.6198432-81909963448880/AnsiballZ_ios_command.py\", line 37, in invoke_module\n from ansible.module_utils import basic\n File \"/tmp/ansible_ios_command_payload_417s0_dz/ansible_ios_command_payload.zip/ansible/module_utils/basic.py\", line 139, in \nImportError: cannot import name '_PERM_BITS'\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1