cancel
Showing results for 
Search instead for 
Did you mean: 

Ansible and Extreme X440 - timeout problem

Ansible and Extreme X440 - timeout problem

Valmarix
New Contributor
Hi there.
 
I'm trying automate somethings in my network, and i'm struggling with swiches Extremes X440.
 
When I run my ansible code, it works great on X460 and X670 switches, but gives "command timeout triggered" on X440.
Firmware on all of them are 16.2.5.4 (ExtremeXOS version 16.2.5.4 16.2.5.4-patch1-12 by).
 
Below are my ansible code and debug output
 
--- - name: RUN COMMNAND AND PRINT TERMINAL WINDOW   hosts: extreme2   gather_facts: true   become: true   become_method: enable   vars:           ansible_python_interpreter: /usr/bin/python3           network_os: exos   tasks:           - name: tentativa             community.network.exos_config:                     lines: disable clipaging           - name: run show version on remote devices             exos_command:                     commands: show version             register: show_version           - name: var_result             debug:                     var: show_version.stdout_lines[0]

 

 

 

Debug.txt

 

2021-02-24 11:55:28,462 p=5048 u=valdinei n=ansible | ansible-playbook 2.9.18  config file = /etc/ansible/ansible.cfg  configured module search path = [u'/home/valdinei/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']  ansible python module location = /usr/lib/python2.7/dist-packages/ansible  executable location = /usr/bin/ansible-playbook  python version = 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]2021-02-24 11:55:28,463 p=5048 u=valdinei n=ansible | Using /etc/ansible/ansible.cfg as config file2021-02-24 11:55:28,463 p=5048 u=valdinei n=ansible | setting up inventory plugins2021-02-24 11:55:28,468 p=5048 u=valdinei n=ansible | host_list declined parsing /home/valdinei/automacao/hosts as it did not pass its verify_file() method2021-02-24 11:55:28,468 p=5048 u=valdinei n=ansible | script declined parsing /home/valdinei/automacao/hosts as it did not pass its verify_file() method2021-02-24 11:55:28,468 p=5048 u=valdinei n=ansible | auto declined parsing /home/valdinei/automacao/hosts as it did not pass its verify_file() method2021-02-24 11:55:28,517 p=5048 u=valdinei n=ansible | Parsed /home/valdinei/automacao/hosts inventory source with ini plugin2021-02-24 11:55:28,738 p=5048 u=valdinei n=ansible | Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/default.pyc2021-02-24 11:55:28,777 p=5048 u=valdinei n=ansible | Skipping callback 'actionable', as we already have a stdout callback.2021-02-24 11:55:28,777 p=5048 u=valdinei n=ansible | Skipping callback 'counter_enabled', as we already have a stdout callback.2021-02-24 11:55:28,777 p=5048 u=valdinei n=ansible | Skipping callback 'debug', as we already have a stdout callback.2021-02-24 11:55:28,777 p=5048 u=valdinei n=ansible | Skipping callback 'dense', as we already have a stdout callback.2021-02-24 11:55:28,777 p=5048 u=valdinei n=ansible | Skipping callback 'dense', as we already have a stdout callback.2021-02-24 11:55:28,777 p=5048 u=valdinei n=ansible | Skipping callback 'full_skip', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'json', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'minimal', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'null', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'oneline', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'selective', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'skippy', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'stderr', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'unixy', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | Skipping callback 'yaml', as we already have a stdout callback.2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | PLAYBOOK: extreme.yaml *********************************************************************************************************************************************************2021-02-24 11:55:28,778 p=5048 u=valdinei n=ansible | 1 plays in extreme.yaml2021-02-24 11:55:28,782 p=5048 u=valdinei n=ansible | PLAY [RUN COMMNAND AND PRINT TERMINAL WINDOW] **********************************************************************************************************************************2021-02-24 11:55:28,787 p=5048 u=valdinei n=ansible | META: ran handlers2021-02-24 11:55:28,792 p=5048 u=valdinei n=ansible | TASK [tentativa] ***************************************************************************************************************************************************************2021-02-24 11:55:28,806 p=5055 u=valdinei n=ansible | <192.168.23.10> attempting to start connection2021-02-24 11:55:28,807 p=5055 u=valdinei n=ansible | <192.168.23.10> using connection plugin network_cli2021-02-24 11:55:29,355 p=4654 u=valdinei n=ansible | persistent connection idle timeout triggered, timeout value is 120 secs.See the timeout setting options in the Network Debug and Troubleshooting Guide.2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10> local domain socket does not exist, starting it2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10> control socket path is /home/valdinei/.ansible/pc/a66bd820bf2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5056 1614178529.34427: trying /usr/lib/python2.7/dist-packages/ansible/plugins/connection2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5056 1614178529.35128: Loaded config def from plugin (connection/ssh)2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5056 1614178529.35136: Loading Connection 'ssh' from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True)2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.35976: Loaded config def from plugin (connection/network_cli)2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.35994: Loading Connection 'network_cli' from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36024: trying /usr/lib/python2.7/dist-packages/ansible/plugins/shell2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36159: trying /usr/lib/python2.7/dist-packages/ansible/plugins/doc_fragments2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36309: Loading ModuleDocFragment 'shell_common' from /usr/lib/python2.7/dist-packages/ansible/plugins/doc_fragments/shell_common.py2021-02-24 11:55:29,406 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36386: Loaded config def from plugin (shell/sh)2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36390: Loading ShellModule 'sh' from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36395: Loading ShellModule 'sh' from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36434: Loading Connection 'local' from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/local.py2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36439: Loading ShellModule 'sh' from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36450: Loading ShellModule 'sh' from /usr/lib/python2.7/dist-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36459: Loading Connection 'ssh' from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/ssh.py (found_in_cache=True, class_only=True)2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36626: trying /usr/lib/python2.7/dist-packages/ansible/plugins/terminal2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36795: Loading TerminalModule 'ios' from /usr/lib/python2.7/dist-packages/ansible/plugins/terminal/ios.py2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.36928: trying /usr/lib/python2.7/dist-packages/ansible/plugins/cliconf2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5061 1614178529.37069: Loading Cliconf 'ios' from /usr/lib/python2.7/dist-packages/ansible/plugins/cliconf/ios.py2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10> local domain socket listeners started successfully2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10> loaded cliconf plugin ios from path /usr/lib/python2.7/dist-packages/ansible/plugins/cliconf/ios.py for network_os ios2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | network_os is set to ios2021-02-24 11:55:29,407 p=5055 u=valdinei n=ansible | <192.168.23.10>   5056 1614178529.34427: trying /usr/lib/python2.7/dist-packages/ansible/plugins/connection  5056 1614178529.35128: Loaded config def from plugin (connection/ssh)  5056 1614178529.35136: Loading Connection 'ssh' from /usr/lib/python2.7/dist-packages/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True)2021-02-24 11:55:29,408 p=5055 u=valdinei n=ansible | <192.168.23.10> local domain socket path is /home/valdinei/.ansible/pc/a66bd820bf2021-02-24 11:55:29,410 p=5055 u=valdinei n=ansible | <192.168.23.10> ESTABLISH LOCAL CONNECTION FOR USER: valdinei2021-02-24 11:55:29,410 p=5055 u=valdinei n=ansible | <192.168.23.10> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3 `"&& mkdir "` echo /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224 `" && echo ansible-tmp-1614178529.41-5055-29815896819224="` echo /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224 `" ) && sleep 0'2021-02-24 11:55:29,570 p=4654 u=valdinei n=ansible | shutdown complete2021-02-24 11:55:29,604 p=5055 u=valdinei n=ansible | Using module file /home/valdinei/.ansible/collections/ansible_collections/community/network/plugins/modules/exos_config.py2021-02-24 11:55:29,605 p=5055 u=valdinei n=ansible | <192.168.23.10> PUT /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/tmpKaQj43 TO /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py2021-02-24 11:55:29,605 p=5055 u=valdinei n=ansible | <192.168.23.10> EXEC /bin/sh -c 'chmod u+x /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/ /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py && sleep 0'2021-02-24 11:55:29,611 p=5055 u=valdinei n=ansible | <192.168.23.10> EXEC /bin/sh -c '/usr/bin/python3 /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py && sleep 0'2021-02-24 11:55:29,786 p=5061 u=valdinei n=ansible | <192.168.23.10> ESTABLISH PARAMIKO SSH CONNECTION FOR USER: valdinei on PORT 22 TO 192.168.23.102021-02-24 11:55:34,119 p=5061 u=valdinei n=p=5061 u=valdinei | paramiko [192.168.23.10] | Connected (version 2.0, client OpenSSH_6.5)2021-02-24 11:55:34,713 p=5061 u=valdinei n=p=5061 u=valdinei | paramiko [192.168.23.10] | Auth banner: 2021-02-24 11:55:34,713 p=5061 u=valdinei n=p=5061 u=valdinei | paramiko [192.168.23.10] | Authentication (publickey) successful!2021-02-24 11:57:29,783 p=5061 u=valdinei n=ansible | command timeout triggered, timeout value is 120 secs.See the timeout setting options in the Network Debug and Troubleshooting Guide.2021-02-24 11:57:29,784 p=5061 u=valdinei n=ansible | Traceback (most recent call last):  File "/usr/lib/python2.7/dist-packages/ansible/utils/jsonrpc.py", line 45, in handle_request    result = rpc_method(*args, **kwargs)  File "/usr/lib/python2.7/dist-packages/ansible/plugins/cliconf/ios.py", line 263, in get_capabilities    result = super(Cliconf, self).get_capabilities()  File "/usr/lib/python2.7/dist-packages/ansible/plugins/cliconf/__init__.py", line 283, in get_capabilities    result['device_info'] = self.get_device_info()  File "/usr/lib/python2.7/dist-packages/ansible/plugins/cliconf/ios.py", line 214, in get_device_info    reply = self.get(command='show version')  File "/usr/lib/python2.7/dist-packages/ansible/plugins/cliconf/ios.py", line 208, in get    return self.send_command(command=command, prompt=prompt, answer=answer, sendonly=sendonly, newline=newline, check_all=check_all)  File "/usr/lib/python2.7/dist-packages/ansible/plugins/cliconf/__init__.py", line 127, in send_command    resp = self._connection.send(**kwargs)  File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py", line 302, in wrapped    self._connect()  File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py", line 481, in _connect    self.receive(prompts=terminal_initial_prompt, answer=terminal_initial_answer, newline=newline, check_all=check_all)  File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py", line 561, in receive    data = self._ssh_shell.recv(256)  File "/usr/local/lib/python2.7/dist-packages/paramiko/channel.py", line 596, in recv    out = self.in_buffer.read(nbytes, self.timeout)  File "/usr/local/lib/python2.7/dist-packages/paramiko/buffered_pipe.py", line 147, in read    self._cv.wait(timeout)  File "/usr/lib/python2.7/threading.py", line 359, in wait    _sleep(delay)  File "/usr/bin/ansible-connection", line 183, in command_timeout    raise Exception(msg)Exception: command timeout triggered, timeout value is 120 secs.See the timeout setting options in the Network Debug and Troubleshooting Guide.2021-02-24 11:57:29,802 p=5055 u=valdinei n=ansible | <192.168.23.10> EXEC /bin/sh -c 'rm -f -r /home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/ > /dev/null 2>&1 && sleep 0'2021-02-24 11:57:29,809 p=5048 u=valdinei n=ansible | The full traceback is:Traceback (most recent call last):  File "/home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py", line 102, in <module>    _ansiballz_main()  File "/home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py", line 94, in _ansiballz_main    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)  File "/home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py", line 40, in invoke_module    runpy.run_module(mod_name='ansible_collections.community.network.plugins.modules.exos_config', init_globals=None, run_name='__main__', alter_sys=True)  File "/usr/lib/python3.5/runpy.py", line 205, in run_module    return _run_module_code(code, init_globals, run_name, mod_spec)  File "/usr/lib/python3.5/runpy.py", line 96, in _run_module_code    mod_name, mod_spec, pkg_name, script_name)  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code    exec(code, run_globals)  File "/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/modules/exos_config.py", line 431, in <module>  File "/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/modules/exos_config.py", line 340, in main  File "/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/modules/exos_config.py", line 234, in get_running_config  File "/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/module_utils/network/exos/exos.py", line 180, in get_config  File "/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/module_utils/network/exos/exos.py", line 167, in get_connection  File "/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible/module_utils/connection.py", line 185, in __rpc__ansible.module_utils.connection.ConnectionError: command timeout triggered, timeout value is 120 secs.See the timeout setting options in the Network Debug and Troubleshooting Guide.2021-02-24 11:57:29,810 p=5048 u=valdinei n=ansible | fatal: [192.168.23.10]: FAILED! => {    "changed": false,     "module_stderr": "Traceback (most recent call last):\n  File \"/home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/valdinei/.ansible/tmp/ansible-local-50480EWRg3/ansible-tmp-1614178529.41-5055-29815896819224/AnsiballZ_exos_config.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.community.network.plugins.modules.exos_config', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib/python3.5/runpy.py\", line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.5/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib/python3.5/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/modules/exos_config.py\", line 431, in <module>\n  File \"/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/modules/exos_config.py\", line 340, in main\n  File \"/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/modules/exos_config.py\", line 234, in get_running_config\n  File \"/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/module_utils/network/exos/exos.py\", line 180, in get_config\n  File \"/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible_collections/community/network/plugins/module_utils/network/exos/exos.py\", line 167, in get_connection\n  File \"/tmp/ansible_community.network.exos_config_payload_3f4hlh50/ansible_community.network.exos_config_payload.zip/ansible/module_utils/connection.py\", line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: command timeout triggered, timeout value is 120 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide.\n",     "module_stdout": "",     "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",     "rc": 1}2021-02-24 11:57:29,925 p=5048 u=valdinei n=ansible | PLAY RECAP *********************************************************************************************************************************************************************2021-02-24 11:57:29,926 p=5048 u=valdinei n=ansible | 192.168.23.10              : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   2021-02-24 11:57:30,025 p=5061 u=valdinei n=ansible | shutdown complete

 

 

Has anyone some hints?

0 REPLIES 0
GTM-P2G8KFN