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

Cannot configure a device on a Circuit Termination point anymore #1637

Closed
jdecorniquet opened this issue Oct 23, 2017 · 8 comments
Closed

Cannot configure a device on a Circuit Termination point anymore #1637

jdecorniquet opened this issue Oct 23, 2017 · 8 comments

Comments

@jdecorniquet
Copy link

Issue type

[ ] Feature request
[X ] Bug report
[ ] Documentation

Environment

  • Python version: 2.7..9
  • NetBox version: 2.2.2

Description

When creating a circuit and editing the termination point, after selecting the site, no device are found/looked up.
More specifically, when I take an existing circuit with termination A-Z already configured, if I change the site (say from site ABC to ZZZ) and then go back to the original, the device do not show up anymore even though it does existing in Netbox.

I upgraded from 2.1.5 to 2.2.2 recently, it used to work before.

Regards,

@jeremystretch
Copy link
Member

Please post the list of steps necessary to recreate the behavior you're describing, beginning with the creation of sites and devices.

@jdecorniquet
Copy link
Author

jdecorniquet commented Oct 27, 2017 via email

@jeremystretch
Copy link
Member

When I run through the steps you list, I see TestDevice in the list as expected. Are you sure you didn't assign TestDevice to a rack? (If you did, you'd need to select the rack from the dropdown in the circuit termination form.) Does TestDevice show up in the list at https://netbox/dcim/devices/?rack_id=0?

@jdecorniquet
Copy link
Author

jdecorniquet commented Oct 27, 2017 via email

@jeremystretch
Copy link
Member

Can you post the result you get when querying the API for the device please? (GET https://netbox/api/dcim/devices/<pk>/) If the rack is null the filter should find it.

@jeremystretch
Copy link
Member

It looks like you might have run into #1649. What version of django-filter to you have installed? (You can check with pip freeze | grep django-filter.) If it's 1.1.0 or higher, try downgrading to 1.0.4 for now to see if that fixes the issue (pip install -U django-filter==1.0.4).

@jdecorniquet
Copy link
Author

Hello,

First, the GET https://netbox/api/dcim/devices// was indeed showing the null value for the rack.
Last, the django-filter was indeed at version 1.1.0 and downgrading it to 1.0.4 did fix the issue!

Thanks,

@jeremystretch
Copy link
Member

Cool. #1649 will be fixed in v2.2.3. Closing this out.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants