-
Notifications
You must be signed in to change notification settings - Fork 32
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
Device inventory fails with "ERROR: netbox_importer: Error getting neighbours on 2 device(s)" #34
Comments
Hi, |
Hey! Sorry I've completely missed the debug mode. Mailed the output since it's probably way too long (68732 lines) to paste here. |
The error seems to be this one:
I guess the error is here: https://github.com/aruhier/netbox-netprod-importer/blob/master/netbox_netprod_importer/vendors/juniper/base.py#L148 If you find the issue, however, please feel fry to send me a patch. |
Hey there,
That's fair enough; thanks a bunch for the work so far!
Cheers,
Erdem
… On 16 Mar 2020, at 19:48, Anthony Ruhier ***@***.***> wrote:
The error seems to be this one:
DEBUG: netbox_importer: Error when defining interconnections on host xxx-xxx-xx-xxxx: list index out of range
I guess the error is here: https://github.com/aruhier/netbox-netprod-importer/blob/master/netbox_netprod_importer/vendors/juniper/base.py#L148 <https://github.com/aruhier/netbox-netprod-importer/blob/master/netbox_netprod_importer/vendors/juniper/base.py#L148>
But sadly it will be difficult for me to debug with having a junOS to debug (with the version you're running). And I'm sorry to say that, but I don't want to push the debug further, as don't want to spend time on this tool anymore (because also of the difficulty to work on it without an infrastructure to target, and because I don't have any need for this tool anymore), and I'm looking for a new maintainer for it.
If you find the issue, however, please feel fry to send me a patch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAIAYL5YJ4OLLHJNLQ2WDNLRHZX7HANCNFSM4LKGHYQA>.
|
Bonjour! I am facing the same issue here. Looking at the 101 600 lines debug output, I realize that at some point, the accessed API URL is missing information and it obtains a 404 page:
This error appears for my 2 devices in scope for this import. My understanding is that the script should try https://FULL-URL.DOMAIN/ipshack/api/dcim/devices/?name=DEVICENAMEHERE&limit=50 instead of https://FULL-URL.DOMAIN/ipshack/api/dcim/_choices/?limit=50 I simply cannot put my finger on the issue looking at the code as I am not fluent in python :| |
For all three devices, netbox shows LLDP neighbors without errors.
Full output:
Initializing importers…
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 21.46it/s]
Fetching and pushing data…
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [01:10<00:00, 23.53s/it]
Finding neighbours and interconnecting…
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:04<00:00, 1.37s/it]
0 interconnection(s) applied
ERROR: netbox_importer: Error getting neighbours on 3 device(s)
The text was updated successfully, but these errors were encountered: