Closed NicolasSERDANI closed 2 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
@NicolasSERDANI, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network
on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community
hello any update on this topic? new occurence ansible-playbook 2.10.4 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/victor/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.6/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.6.6 (default, Dec 18 2020, 12:16:49) [GCC 7.5.0]
Thanks
The full traceback is: File "/tmp/ansible_aireos_config_payload_7ztuyfv9/ansible_aireos_config_payload.zip/ansible_collections/community/network/plugins/module_utils/network/aireos/aireos.py", line 93, in get_config return _DEVICE_CONFIGS[cmd] [WARNING]: Platform linux on host WLC-dev is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. fatal: [WLC-dev]: FAILED! => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, "invocation": { "module_args": { "after": null, "backup": true, "backup_options": { "dir_path": "files/", "filename": "backup.cfg" }, "before": null, "diff_against": null, "diff_ignore_lines": null, "host": null, "intended_config": null, "lines": null, "match": "line", "password": null, "port": null, "provider": { "host": null, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "port": null, "ssh_keyfile": null, "timeout": 90, "username": "adminbna" }, "running_config": null, "save": false, "save_when": "never", "src": null, "ssh_keyfile": null, "timeout": null, "username": null } }, "msg": "unable to retrieve current config", "stderr": "Internal error", "stderr_lines": [ "Internal error" ]
hello this topic can be closed because the root cause was a cisco bug in OS version RTOS 8.10.130.0 with flexgroup names. Thanks BR
closing from @bapi25's report, please feel free to re-open @NicolasSERDANI if you are still experiencing issues
@NicolasSERDANI I discovered this while having a similar issue on 8.10. The correct solution for me was using ansible_network_os = aireos
instead of ansible_network_os = ios
.
SUMMARY
After an upgrade of WLC controller (8.5.151 --> 8.10.130), the aireos_config module return an error during the backup of the config file's.
ISSUE TYPE
COMPONENT NAME
aireos_config
ANSIBLE VERSION
ansible-playbook 2.9.7
CONFIGURATION
OS / ENVIRONMENT
aireos (version 8.10.130).
STEPS TO REPRODUCE
EXPECTED RESULTS
Get the config file in a directory
ACTUAL RESULTS