Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paramiko Banner Error when onboarding #157

Open
thomasbridge-gnetwork opened this issue Feb 21, 2024 · 3 comments
Open

Paramiko Banner Error when onboarding #157

thomasbridge-gnetwork opened this issue Feb 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@thomasbridge-gnetwork
Copy link

Environment

  • Python version: 3.10.12
  • Nautobot version: 2.1.2
  • nautobot-device-onboarding version: 3.0.1

Expected Behavior

Device would be onboarded!

Observed Behavior

I have Nautobot installed in a WSL Ubuntu environment. Using the device onboarding plugin I get a paramiko error

ERROR: A paramiko SSHException occurred during connection creation:Error reading SSH protocol banner

Output from the job below (there may be some extra output because I've hacked the installed file, but only added print/log statements in an attempt to troubleshoot).

2024-02-21 11:03:48.666333 | initialization | Info | — | Running job
2024-02-21 11:03:48.685867 | _parse_credentials | Info | — | Using napalm credentials configured in nautobot_config.py
2024-02-21 11:03:48.694279 | run | Info | — | START: onboarding devices
2024-02-21 11:03:48.699881 | _onboard | Info | — | Attempting to onboard an0.cano01.gn.local.
2024-02-21 11:03:48.706023 | _onboard | Info | — | NetDevKeeper object created
2024-02-21 11:03:48.733705 | run | Error | — | The following exception occurred when attempting to onboard an0.cano01.gn.local: fail-general - fail-connect - ERROR: A paramiko SSHException occurred during connection creation:Error reading SSH protocol banner
2024-02-21 11:03:48.752323 | post_run | Info | — | Job completed

Steps to Reproduce

  1. Install ubuntu on WSL.
  2. Install Nautobot + Nautobot onboarding plugin.
  3. Try to onboard a network device (with no data loaded).

I have asked on the Slack channel, but wanted to follow up here as Slack is on a different machine and there are some corporate policies that make sending outout to Slack more tricky.

It is clear that the failure is happening in the part of the code where it is attempting to guess the OS (in this case an IOS-XR device). However, running the same code through the nautobot nbshell works successfully.

Googling suggests it might be a banner_timeout setting for paramiko.

@gsnider2195 gsnider2195 added the bug Something isn't working label Oct 25, 2024
@gsnider2195
Copy link
Contributor

Possibly related to nautobot/nautobot-app-golden-config#820 ?

@thomasbridge-gnetwork
Copy link
Author

Possibly related to nautobot/nautobot-app-golden-config#820 ?

Looks like it - interestingly I am only seeing the issue on IOS XR and not on IOS XE. The related ticket in the Golden Config also applies to IOS XR devices.

@scetron
Copy link
Contributor

scetron commented Dec 17, 2024

Also, @thomasbridge-gnetwork, you are still hitting this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants