Replies: 13 comments 1 reply
-
cc @Sn0w2776 |
Beta Was this translation helpful? Give feedback.
-
Original tracelog - ansible/ansible#82636 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hello, I think my Netbox version is 3.7.2 as you can see on screenshot : And no I can't access to https://smssnetbox.mss.lan/api/docs/?format=openapi? Thanks for help ! |
Beta Was this translation helpful? Give feedback.
-
@Akasurde what are your guidelines or advice? |
Beta Was this translation helpful? Give feedback.
-
You state that you did an update to the NetBox server and now the inventory plugin does not work. Please check your version of the NetBox Ansible collection and the version of the NetBox server API that it supports |
Beta Was this translation helpful? Give feedback.
-
@Sn0w2776 I think Netbox has different product versions. The one I am using is a trial, you might be using the production. Someone from this collection might have a better idea as to why the inventory failing to fetch I will provide addition information if required. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Another common issue that we see for this kind of issue is when someone has placed a proxy in front of the NetBox server that does not allow access to the required URLs |
Beta Was this translation helpful? Give feedback.
-
@sc68cal The issue is migrated from |
Beta Was this translation helpful? Give feedback.
-
We also had a refactoring of the logic around the fetching of the openapi and caching, which I would recommend updating your collection in order to get the benefit of |
Beta Was this translation helpful? Give feedback.
-
I got a similar or maybe the same issue with Netbox 3.7.3 (3.7.0 also) and netbox.netbox collection 3.17.0:
Testing it against an old netbox installation 2.10.4 it works as expected. The used inventory file:
|
Beta Was this translation helpful? Give feedback.
-
FOr my issues it seems there was an problem with an netbox installation within a subdir (/netbox). but the nb_inventory search the query paramters in /api/dcim/devices not in /netbox/api/dcim/devices. If i add the subdir to the device and vm query parameters all is working. Is there a config knob to inform about a subdir installation? |
Beta Was this translation helpful? Give feedback.
-
@tweippert [WARNING]: * Failed to parse /home/ansible/inventory-dyn-datacenter.yaml with auto plugin: <title>Page Not Found | NetBox</title> <script type="text/javascript"
src="/static/setmode.js" onerror="window.location='/media-failure/?filename=setmode.js'"> </script> <script type="text/javascript"> (function () { |
Beta Was this translation helpful? Give feedback.
-
I think v3.7.2 has moved the api url away from /api/docs/ so the question is, why does your request goes to this url, which version of pynetbox and netbox.netbox collection did you use? |
Beta Was this translation helpful? Give feedback.
-
Summary
I did an update on Netbox (3.6.9 to 3.7.0). After this update, Ansible and Netbox cannot link together, I checked the 443 and SQL port and everything its ok but when I try to link both I've got the issue in tittle.
Issue Type
Bug Report
Component Name
netbox ansible link issue
Ansible Version
Configuration
OS / Environment
Ubuntu 20.04.2 LTS
Steps to Reproduce
Expected Results
I expected that Ansible access to Netbox inventory and parsed it for my script
Actual Results
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions