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
ios_config does not support the sub-level configuration mode related to "crypto pki trustpoint" #35662
Comments
Files identified in the description: If these files are inaccurate, please update the |
On latest stable version:
the issue is there but the symptom is different: this time the module breaks after the second command:
As a side-note, you may have noticed that this time, all the context is nicely printed (cf. #34554). |
This issue happens even if I drop all commands below the second one, i.e with:
which leads to:
|
If I change the second command by another one, the issue remains. |
If I change the first 2 lines by the following commands, the issue is gone:
So, it seems specific to the first command |
Is this a multi prompt command? Would be interesting to know where the We will investigate some more |
Alright, there seem to be a few things going on here, and I'd like your help confirming how many of them are actually the case. One issue has to do with how we try to handle prompts in ios_config. There is a bug there, which should be fixed by #36183, which is why @gundalow thought there might be some issue with prompts. The other issue seems to be the use of
to get the right effect. |
send_command already performs the to_bytes safely on prompts (checking for None). Without this check the literal 'None' became a subprompt trigger! Fixes ansible#35662 (cherry picked from commit f2818ca)
This should now be fixed in needs_info |
ISSUE TYPE
COMPONENT NAME
ios_config
ANSIBLE VERSION
Latest unstable version:
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
ios_config requests the remote device to execute a command 'None' or empty which was not requested in the list of commands.
This situation seems to be triggered when subsequent commands follow by the specific command "crypto pki trustpoint".
STEPS TO REPRODUCE
Role: :
EXPECTED RESULTS
The module should execute only the list of requested commands.
ACTUAL RESULTS: Playbook
The commands sent to the remote device by ios_config have been logged:
Configuring manually the device on the CLI is correct:
The text was updated successfully, but these errors were encountered: