vyos_config fails with timeout with big configuration #22233
Labels
affects_2.2
This issue/PR affects Ansible v2.2
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
needs_info
This issue requires further information. Please answer any outstanding questions.
networking
Network category
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
COMPONENT NAME
vyos_config
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Running from: Mac OS X 10.11.6
Managing: vyos 1.1.7
SUMMARY
I'm trying to load a whole configuration into a vyos 1.1.7 router with ansible 2.2.1.0 and the 'vyos_config' module.
My current list of commands is about 12.8 K characters and about 201 commands and this is really just the start, it will probably get bigger.
Up until some number of commands it works.
At some number of commands I get:
TASK [Configure VyOS Router Commands] **************************************
fatal: [testserver]: FAILED! => {"changed": false, "commands": "commit comment "configured by vyos_config"", "failed": true, "msg": "timeout trying to send command: commit comment "configured by vyos_config"\r"}
*** I tried adjusting the timeout in the vyos_config parameter but that didn't change anything.
When I log in remotely and check, it seems it has dropped at least some of the commands sent and not loaded all of them.
I then reload from a known good configuration to restore it to known configuration, but without being able to accomplish the goal of changing the configuration remotely.
What are the limits on the number of commands that can be sent?
I've tried using ansible_command to upload a file and load it and the error message says to use vyos_config.
I've also tried to break up the commands into groups and that errored out in the same way.
Is there either some work-around or some other way to configure a whole box with not just a few commands?
STEPS TO REPRODUCE
EXPECTED RESULTS
No error message, successful configuration as what happens with some unknown number of fewer commands.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: