|
|
|
|
@@ -464,3 +464,556 @@ Traceback (most recent call last):
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:11:48,739 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:11:51,507 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-A' with args {'config_file': 'config/R2_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:11:56,613 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-B' with args {'config_file': 'config/R1_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:12:03,372 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-B' with args {'config_file': 'config/R2_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:12:10,472 - nornir.core - INFO - run() - Running task 'Déploiement config ESW1-CPE-BAT-A' with args {'config_file': 'config/ESW1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:12:23,848 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A_VRRP.conf'} on 4 hosts
|
|
|
|
|
2025-11-20 21:12:28,587 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R2-CPE-BAT-A' with args {'config_file': 'config/R2_CPE_LYON_BAT_A_VRRP.conf'} on 4 hosts
|
|
|
|
|
2025-11-20 21:12:47,761 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-B': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R3.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:12:47,762 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-B': task 'Déploiement VRRP R2-CPE-BAT-A' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:12:47,811 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-B': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R4.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:12:47,812 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-B': task 'Déploiement VRRP R2-CPE-BAT-A' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:12:47,813 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R1-CPE-BAT-B' with args {'config_file': 'config/R1_CPE_LYON_BAT_B_VRRP.conf'} on 2 hosts
|
|
|
|
|
2025-11-20 21:12:50,067 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R2-CPE-BAT-B' with args {'config_file': 'config/R2_CPE_LYON_BAT_B_VRRP.conf'} on 2 hosts
|
|
|
|
|
2025-11-20 21:13:05,466 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-A': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R1\\-CPE\\-BAT\\-A.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:13:05,468 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-A': task 'Déploiement VRRP R2-CPE-BAT-B' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:13:06,974 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-A': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R2\\-CPE\\-BAT\\-A.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:13:06,974 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-A': task 'Déploiement VRRP R2-CPE-BAT-B' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:13:34,441 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:13:36,525 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-A' with args {'config_file': 'config/R2_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:13:41,177 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-B' with args {'config_file': 'config/R1_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:13:47,459 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-B' with args {'config_file': 'config/R2_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:13:53,898 - nornir.core - INFO - run() - Running task 'Déploiement config ESW1-CPE-BAT-A' with args {'config_file': 'config/ESW1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:14:06,475 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A_VRRP.conf'} on 4 hosts
|
|
|
|
|
2025-11-20 21:14:10,913 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R2-CPE-BAT-A' with args {'config_file': 'config/R2_CPE_LYON_BAT_A_VRRP.conf'} on 4 hosts
|
|
|
|
|
2025-11-20 21:14:30,002 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-B': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R3.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:14:30,002 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-B': task 'Déploiement VRRP R2-CPE-BAT-A' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:14:30,129 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-B': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R4.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:14:30,130 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-B': task 'Déploiement VRRP R2-CPE-BAT-A' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:14:30,130 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R1-CPE-BAT-B' with args {'config_file': 'config/R1_CPE_LYON_BAT_B_VRRP.conf'} on 2 hosts
|
|
|
|
|
2025-11-20 21:14:32,579 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R2-CPE-BAT-B' with args {'config_file': 'config/R2_CPE_LYON_BAT_B_VRRP.conf'} on 2 hosts
|
|
|
|
|
2025-11-20 21:14:48,020 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-A': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R1\\-CPE\\-BAT\\-A.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:14:48,021 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-A': task 'Déploiement VRRP R2-CPE-BAT-B' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:14:49,392 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-A': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R2\\-CPE\\-BAT\\-A.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:14:49,392 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-A': task 'Déploiement VRRP R2-CPE-BAT-B' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:17:25,458 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:17:27,600 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-A' with args {'config_file': 'config/R2_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:17:32,343 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-B' with args {'config_file': 'config/R1_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:17:38,480 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-B' with args {'config_file': 'config/R2_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:17:44,843 - nornir.core - INFO - run() - Running task 'Déploiement config ESW1-CPE-BAT-A' with args {'config_file': 'config/ESW1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:17:57,065 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A_VRRP.conf'} on 4 hosts
|
|
|
|
|
2025-11-20 21:19:58,532 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:20:00,681 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-A' with args {'config_file': 'config/R2_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:20:05,531 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-B' with args {'config_file': 'config/R1_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:20:11,738 - nornir.core - INFO - run() - Running task 'Déploiement config R2-CPE-BAT-B' with args {'config_file': 'config/R2_CPE_LYON_BAT_B.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:20:18,241 - nornir.core - INFO - run() - Running task 'Déploiement config ESW1-CPE-BAT-A' with args {'config_file': 'config/ESW1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:20:30,799 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A_VRRP.conf'} on 4 hosts
|
|
|
|
|
2025-11-20 21:20:35,209 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R2-CPE-BAT-A' with args {'config_file': 'config/R2_CPE_LYON_BAT_A_VRRP.conf'} on 4 hosts
|
|
|
|
|
2025-11-20 21:20:54,322 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-B': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R3.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:20:54,323 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-B': task 'Déploiement VRRP R2-CPE-BAT-A' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:20:54,493 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-B': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R4.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:20:54,494 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-B': task 'Déploiement VRRP R2-CPE-BAT-A' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:20:54,495 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R1-CPE-BAT-B' with args {'config_file': 'config/R1_CPE_LYON_BAT_B_VRRP.conf'} on 2 hosts
|
|
|
|
|
2025-11-20 21:20:56,827 - nornir.core - INFO - run() - Running task 'Déploiement VRRP R2-CPE-BAT-B' with args {'config_file': 'config/R2_CPE_LYON_BAT_B_VRRP.conf'} on 2 hosts
|
|
|
|
|
2025-11-20 21:21:12,196 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-A': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R1\\-CPE\\-BAT\\-A.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:21:12,197 - nornir.core.task - ERROR - start() - Host 'R1-CPE-BAT-A': task 'Déploiement VRRP R2-CPE-BAT-B' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:21:13,682 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-A': task 'netmiko_send_config' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir_netmiko/tasks/netmiko_send_config.py", line 38, in netmiko_send_config
|
|
|
|
|
result = net_connect.send_config_set(config_commands=config_commands, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 111, in wrapper_decorator
|
|
|
|
|
return_val = func(self, *args, **kwargs)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 2341, in send_config_set
|
|
|
|
|
output += self.read_until_pattern(
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/netmiko/base_connection.py", line 755, in read_until_pattern
|
|
|
|
|
raise ReadTimeout(msg)
|
|
|
|
|
netmiko.exceptions.ReadTimeout:
|
|
|
|
|
|
|
|
|
|
Pattern not detected: '(?:R2\\-CPE\\-BAT\\-A.*$|#.*$)' in output.
|
|
|
|
|
|
|
|
|
|
Things you might try to fix this:
|
|
|
|
|
1. Adjust the regex pattern to better identify the terminating string. Note, in
|
|
|
|
|
many situations the pattern is automatically based on the network device's prompt.
|
|
|
|
|
2. Increase the read_timeout to a larger value.
|
|
|
|
|
|
|
|
|
|
You can also look at the Netmiko session_log or debug log for more information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:21:13,683 - nornir.core.task - ERROR - start() - Host 'R2-CPE-BAT-A': task 'Déploiement VRRP R2-CPE-BAT-B' failed with traceback:
|
|
|
|
|
Traceback (most recent call last):
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 98, in start
|
|
|
|
|
r = self.task(self, **self.params)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/workspace/devnet/TP_03/scripts/run_nornir.py", line 174, in deploy_config_from_file
|
|
|
|
|
result = task.run(task=netmiko_send_config, config_commands=commands)
|
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
File "/home/cpe/.local/share/virtualenvs/TP_03-khcHFeCv/lib/python3.12/site-packages/nornir/core/task.py", line 173, in run
|
|
|
|
|
raise NornirSubTaskError(task=run_task, result=r)
|
|
|
|
|
nornir.core.exceptions.NornirSubTaskError: Subtask: netmiko_send_config (failed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-11-20 21:22:11,524 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:23:41,278 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:23:55,536 - nornir.core - INFO - run() - Running task 'Déploiement config R1-CPE-BAT-A' with args {'config_file': 'config/R1_CPE_LYON_BAT_A.conf'} on 1 hosts
|
|
|
|
|
2025-11-20 21:25:27,809 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:25:29,862 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:25:35,067 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:25:41,403 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:25:47,999 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:26:00,926 - nornir.core - INFO - run() - Running task 'deploy_vrrp' with args {} on 4 hosts
|
|
|
|
|
2025-11-20 21:56:47,496 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:56:49,729 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:56:54,540 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:57:00,521 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:57:06,949 - nornir.core - INFO - run() - Running task 'deploy_main' with args {} on 1 hosts
|
|
|
|
|
2025-11-20 21:57:20,248 - nornir.core - INFO - run() - Running task 'deploy_vrrp' with args {} on 4 hosts
|
|
|
|
|
2025-11-20 21:57:25,691 - nornir.core - INFO - run() - Running task 'deploy_ospf' with args {} on 4 hosts
|
|
|
|
|
|