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
pynautobot reqeust error #974
Comments
I believe the original report was at nautobot/pynautobot#23, and includes some additional details not presented here. |
Thanks for the report. Can you provide more details as to where exactly the error is being seen? Is it coming from your |
thanks for looking into it. Yes it is generated from the init call itself
|
So during the init call for this it is using the REST API through pynautobot to gather device information. The specific all is a pynautobot get all devices - https://github.com/nautobot/nornir-nautobot/blob/develop/nornir_nautobot/plugins/inventory/nautobot.py#L111-L125 It is likely having a timeout within there from the gateway of gathering the devices. How many devices are within Nautobot at this point in time? |
it is working intermittently. We have around 2300 devices and 2000 cables |
Can you confirm the resource utilization of the server when this happens? |
I checked both CPU and Memory. All looks good for the last two weeks. Even in this condition, I am having the same problem. Tasks: 188 total, 1 running, 187 sleeping, 0 stopped, 0 zombie |
btw, we have similar set up for both dev and prod, and I am having the same issue on both |
|
based on the nautobot_config.py, where I should look for nautobot logs?
I checked nginx and I getting:
|
could it be pagination problem? how I can change the pagination from 1000 to more ? |
Pynautobot should handle pagination for you; if anything, decreasing the MAX_PAGE_SIZE on your Nautobot instance might be a resolution to this. Some directions to investigate:
|
@nanisyako you can also add
|
Actually, I don't want to filter on site since I am calling the filter from the cli and I am using tags.
If I hardcoded the site it is throwing an error:
|
Sorry about including the site, that was from the examples. Take the site off, really it is this then:
The one with the site works if there was one, tested against demo.nautobot.com. |
awesommeeee it looks promising, I will testing it for couple of hours since it was timing out after couple of idle hours then we can close the issue |
After excludinf the config context, no more timeouts |
Environment
Steps to Reproduce
When I am trying to match a tag when running a nornir script
Expected Behavior
to match the filtered tag
Observed Behavior
The text was updated successfully, but these errors were encountered: