You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to copy a file from remote server to the host using junipernetworks.junos.junos_command module but i am getting command timeout error. I tried to use wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT in vars and async poll as well but it did not help
ISSUE TYPE
Getting command timeout triggered, timeout value is 30 secs in junipernetworks.junos.junos_command module. I was trying to copy a file to the host from remote server. It might take around 5-6 mins. So i changed the default command timeout using asyn/poll, wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT but nothing helped.
COMPONENT NAME
junipernetworks.junos.junos_command
##### OS / ENVIRONMENT
Network os Junos
##### STEPS TO REPRODUCE
Try to copy a file from jump server to the host using junipernetworks.junos.junos_command
name: play book to get the version of the device and copy image files from remote device
hosts: '{{ hostname }}'
become: 'yes'
gather_facts: 'no'
connection: network_cli
vars_prompt:
name: hostname
prompt: 'Enter the Junos SRX hostname:'
private: 'no'
<!--- HINT: You can paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
File needs to be copied from jump server to host
##### ACTUAL RESULTS
[paste below](fatal: [device.net]: FAILED! => {"ansible_job_id": "651079966096.3830764", "changed": false, "finished": 1, "msg": "command timeout triggered, timeout value is 30 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide.", "results_file": "/home/user/.ansible_async/651079966096.3830764", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []})
The text was updated successfully, but these errors were encountered:
I was trying to copy a file from remote server to the host using junipernetworks.junos.junos_command module but i am getting command timeout error. I tried to use wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT in vars and async poll as well but it did not help
ISSUE TYPE
Getting command timeout triggered, timeout value is 30 secs in junipernetworks.junos.junos_command module. I was trying to copy a file to the host from remote server. It might take around 5-6 mins. So i changed the default command timeout using asyn/poll, wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT but nothing helped.
COMPONENT NAME
junipernetworks.junos.junos_command
ANSIBLE VERSION
COLLECTION VERSION
``
ksaran@buildnet6200:/etc/ansible/playbooks# ansible-galaxy collection list junipernetworks.junos
/home/user/.ansible/collections/ansible_collections
Collection Version
junipernetworks.junos 5.3.0
/usr/local/lib/python3.8/site-packages/ansible_collections
Collection Version
junipernetworks.junos 3.1.0
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
hosts: '{{ hostname }}'
become: 'yes'
gather_facts: 'no'
connection: network_cli
vars_prompt:
prompt: 'Enter the Junos SRX hostname:'
private: 'no'
prompt: 'Enter SSH Username:'
private: 'no'
prompt: 'Enter SSH Password:'
private: 'yes'
prompt: 'Enter name of file 1 to copy:'
private: 'no'
vars:
ansible_host: '{{ hostname }}'
ansible_ssh_user: '{{ ssh_username }}'
ansible_ssh_pass: '{{ ssh_password }}'
tasks:
junipernetworks.junos.junos_command:
commands:
- 'file copy "/{{ File_1 }}" /var/tmp/{{ File_1 }} routing-instance mgmt_junos'
async: 120
poll: 2
[paste below](fatal: [device.net]: FAILED! => {"ansible_job_id": "651079966096.3830764", "changed": false, "finished": 1, "msg": "command timeout triggered, timeout value is 30 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide.", "results_file": "/home/user/.ansible_async/651079966096.3830764", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []})
The text was updated successfully, but these errors were encountered: