ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

vyos_config has timeout after some unknown number of commands #5902

Closed davidsummers closed 7 years ago

davidsummers commented 7 years ago

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"}

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?

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.