Skip to content

Instantly share code, notes, and snippets.

@clay584
Created January 13, 2020 22:10
Show Gist options
  • Save clay584/b6ec7331f4f51edd19594dc6f091418c to your computer and use it in GitHub Desktop.
Save clay584/b6ec7331f4f51edd19594dc6f091418c to your computer and use it in GitHub Desktop.
Cisco ACI crash
The full traceback is:
Traceback (most recent call last):
File "/home/ccurtis/.ansible/tmp/ansible-tmp-1578728906.0116885-41951605142416/AnsiballZ_aci_config_rollback.py", line 102, in <module>
_ansiballz_main()
└ <function _ansiballz_main at 0x7fb671c6b500>
File "/home/ccurtis/.ansible/tmp/ansible-tmp-1578728906.0116885-41951605142416/AnsiballZ_aci_config_rollback.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
│ │ │ └ '{"ANSIBLE_MODULE_ARGS": {"host": "10.8.208.11", "username": "xxxxx", "password": "xxxxx", "validate_certs"...
│ │ └ '/tmp/ansible_aci_config_rollback_payload_y6sKlk'
│ └ '/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip'
└ <function invoke_module at 0x7fb670647938>
File "/home/ccurtis/.ansible/tmp/ansible-tmp-1578728906.0116885-41951605142416/AnsiballZ_aci_config_rollback.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.network.aci.aci_config_rollback', init_globals=None, run_name='__main__', alter_sys=True)
└ <module 'runpy' from '/usr/lib/python2.7/runpy.pyc'>
File "/usr/lib/python2.7/runpy.py", line 188, in run_module
fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
│ └ {'division': _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192), '__metaclass__': <type 'type'>, '__builtins__': {'byt...
└ <code object <module> at 0x7fb670591ab0, file "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_paylo...
File "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip/ansible/modules/network/aci/aci_config_rollback.py", line 320, in <module>
File "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip/ansible/modules/network/aci/aci_config_rollback.py", line 284, in main
File "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip/ansible/modules/network/aci/aci_config_rollback.py", line 303, in get_preview
AttributeError: 'NoneType' object has no attribute 'read'
fatal: [apic1 -> localhost]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "/home/ccurtis/.ansible/tmp/ansible-tmp-1578728906.0116885-41951605142416/AnsiballZ_aci_config_rollback.py", line 102, in <module>
_ansiballz_main()
<function _ansiballz_main at 0x7fb671c6b500>
File "/home/ccurtis/.ansible/tmp/ansible-tmp-1578728906.0116885-41951605142416/AnsiballZ_aci_config_rollback.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
'{"ANSIBLE_MODULE_ARGS": {"host": "10.8.208.11", "username": "xxxxx", "password": "xxxxx", "validate_certs"...
'/tmp/ansible_aci_config_rollback_payload_y6sKlk'
'/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip'
<function invoke_module at 0x7fb670647938>
File "/home/ccurtis/.ansible/tmp/ansible-tmp-1578728906.0116885-41951605142416/AnsiballZ_aci_config_rollback.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.network.aci.aci_config_rollback', init_globals=None, run_name='__main__', alter_sys=True)
<module 'runpy' from '/usr/lib/python2.7/runpy.pyc'>
File "/usr/lib/python2.7/runpy.py", line 188, in run_module
fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
{'division': _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192), '__metaclass__': <type 'type'>, '__builtins__': {'byt...
<code object <module> at 0x7fb670591ab0, file "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_paylo...
File "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip/ansible/modules/network/aci/aci_config_rollback.py", line 320, in <module>
File "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip/ansible/modules/network/aci/aci_config_rollback.py", line 284, in main
File "/tmp/ansible_aci_config_rollback_payload_y6sKlk/ansible_aci_config_rollback_payload.zip/ansible/modules/network/aci/aci_config_rollback.py", line 303, in get_preview
AttributeError: 'NoneType' object has no attribute 'read'
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment