-
Notifications
You must be signed in to change notification settings - Fork 91
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
ICX "Invalid input -> skip" #536
Comments
@computercolin hello, thanks for reporting the issue! |
This issue is also happens when using - name: Remove old NTP hosts
community.network.icx_command:
commands:
- configure terminal
- ntp
- no server {{ item }}
- end
loop: "{{ ntp_deprecated_servers }}"
when: ntp_deprecated_servers is defined
register: _ntp Unlike DNS or logging hosts, which seem to be stateful, these have to be configured using CLI. Since they are not stateful, we usually have to feed a static list ( Error: Cannot delete server/peer, the association entry is not present This error causes the SSH connection to remain in the - name: Escape from NTP config mode
community.network.icx_command:
commands:
- end
ignore_errors: "{{ icx_bypass_errors }}"
TASK [icx-cleanup : Escape from NTP config mode] *******************************
fatal: [switch]: FAILED! => {"changed": false, "msg": "skip\r\nInvalid input -> skip\r\nType ? for a list\r\nSSH@switch(config-ntp)#"} I believe in this case, the proposed patch above would not work since it only addresses unauthenticated context not sub-context where this is also broken. The solution would have to understand what context it is in, in order to issue the correct commands. In the case of sub-contexts, it seems it should append an |
To add some more depth here, in FastIron 9.0.0, the command "aaa authentication login privilege-mode" was deprecated and is not available in FastIron 10.0.0. This means this Ansible module is incompatible with all FastIron 10 devices, regardless of configuration, and possibly FastIron 9 devices as well. @commscope I request this module get an update to be compatible with your current product lineup. |
SUMMARY
The ICX community module fails and spits out an invalid ICX command result "Invalid input -> skip".
The reason is that the ICX module assumes its starting privilege level is enable, however on many of our switches, the starting level is 5 "read-only." 'skip' is not a valid command for level 5 and the module needs to first elevate.
ISSUE TYPE
COMPONENT NAME
community.network.icx_config
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian 11 Bullseye
Switch: Ruckus ICX7150-24-POE running SW 08.0.95dT211
STEPS TO REPRODUCE
erase system factory-default
EXPECTED RESULTS
Ansible runs to completion and snmp-location is set to Earth.
ACTUAL RESULTS
PATCH DEMONSTRATION
run_commands(module, ['enable', 'skip'])
I do not know enough about ansible internals, but this module needs to check privilege level upon connect before running elevated commands.
The text was updated successfully, but these errors were encountered: