-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aireos modules unable to handle binary data from controller #60237
Comments
Files identified in the description:
If these files are inaccurate, please update the |
@individuwill, just so you are aware we have a dedicated Working Group for network. |
The non-ascii values returned from the controller cause a UnicodeError exception on line 467 in file lib/ansible/plugins/connection/network_cli.pywhen The command that's resent is actually a string version of the dictionary that represents the command. I'm guessing the exception handling is there to handle the case where the command sent is was just a string and not a dictionary. When the command is re-sent it triggers a raising of After that's fixed, there's another problem in the lib/ansible/modules/network/aireos/aireos_command.py file on line 129 in the |
Here's the traceback / logs resulting from a UnicodeEncodeError exception related to the
|
cc @$team_ansible |
…ble#60243) * fix issue ansible#60237 when non-ascii is returned from the WLC * update test to work with python3 through use of six library * remove trailing white space
Thank you very much for your interest in Ansible. This plugin is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/ansible.netcommon Please re-submit this issue in the above repository. If you have further questions please stop by IRC or the mailing list:
|
SUMMARY
Cisco WLC release 8.8.120.0 returns non-ascii values with a
show run-config commands
command causing tasks and modules using this command to fail.The binary data appears to happen in the same spot in the output from the controller and looks like this in the prompt:
There are a number of bytes that represent the binary data, one sample is:
\xc8\x92\xef\xbf\xbdR\x7f
ISSUE TYPE
COMPONENT NAME
aireos_command
aireos_config
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Cisco WLC running AireOS with code version 8.8.120.0
STEPS TO REPRODUCE
Run
ansible-playbook
against playbook with task that will execute theshow run-config commands
command.EXPECTED RESULTS
A successful task execution and the running configuration retrieved from the WLC.
ACTUAL RESULTS
An
AnsibleConnectionFailure
exception is raised.The text was updated successfully, but these errors were encountered: