ansible / community

This repository is being archived. See https://github.com/ansible-community/presentations and https://github.com/ansible-community/meetings for the new locations
Apache License 2.0
489 stars 144 forks source link

Ansible Playbook Fails IOS_command #566

Closed raydoherty closed 4 years ago

raydoherty commented 4 years ago
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

Andersson007 commented 4 years ago

@raydoherty hi, i think the proper place for this issue is https://github.com/ansible-collections/cisco.ios

raydoherty commented 4 years ago

Thanks..this will be the third play I've tried.