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
Whenever an NXOS device using the ssh driver in the inventory is unreachable, tasks will complete normally for all reachable hosts and fail for the unreachable one but once the execution is complete, the shell prompt will be locked for input for about 45 seconds per successful NXOS host in the inventory. So if there are 10 successful hosts, and a single one fails, I'll be waiting at least 7 min to get my prompt back unless I send an interrupt signal.
I've stripped down my code to the bare minimum to try narrowing down the issue and arrived to this:
If I take the code out of the main() function I can't reproduce it. If I also create the Nornir object inside a class in another module and instantiate an object of that class inside a main function the issue doesn't seem to happen.
Any idea why this happens? What am I doing wrong here?
The text was updated successfully, but these errors were encountered:
Whenever an NXOS device using the ssh driver in the inventory is unreachable, tasks will complete normally for all reachable hosts and fail for the unreachable one but once the execution is complete, the shell prompt will be locked for input for about 45 seconds per successful NXOS host in the inventory. So if there are 10 successful hosts, and a single one fails, I'll be waiting at least 7 min to get my prompt back unless I send an interrupt signal.
I've stripped down my code to the bare minimum to try narrowing down the issue and arrived to this:
If I take the code out of the main() function I can't reproduce it. If I also create the Nornir object inside a class in another module and instantiate an object of that class inside a main function the issue doesn't seem to happen.
Any idea why this happens? What am I doing wrong here?
The text was updated successfully, but these errors were encountered: