Device objects error when deleting its primary IP address #4708

Closed
opened 2025-12-29 19:19:42 +01:00 by adam · 7 comments
Owner

Originally created by @hyudra on GitHub (Mar 30, 2021).

NetBox version

v2.10.6

Python version

3.8

Steps to Reproduce

  1. Create device Test_01
  2. Create test-interface and binding to to Test_01
  3. Create IPaddress 1.1.1.1/24 and binding to test-interface
  4. Set primary IP of Test_01 to 1.1.1.1/24
  5. Delete IPaddress 1.1.1.1/24
  6. View Device Test_01 and it'll get an error of IPaddressDoesNotExist

Expected Behavior

It should automatically remove primary IP address of device and access to device normally

Observed Behavior

<class 'ipam.models.IPAddress.DoesNotExist'>

IPAddress matching query does not exist.

Python version: 3.8.8
NetBox version: 2.10.6

Originally created by @hyudra on GitHub (Mar 30, 2021). ### NetBox version v2.10.6 ### Python version 3.8 ### Steps to Reproduce 1. Create device Test_01 2. Create test-interface and binding to to Test_01 3. Create IPaddress 1.1.1.1/24 and binding to test-interface 4. Set primary IP of Test_01 to 1.1.1.1/24 5. Delete IPaddress 1.1.1.1/24 6. View Device Test_01 and it'll get an error of IPaddressDoesNotExist ### Expected Behavior It should automatically remove primary IP address of device and access to device normally ### Observed Behavior <class 'ipam.models.IPAddress.DoesNotExist'> IPAddress matching query does not exist. Python version: 3.8.8 NetBox version: 2.10.6
adam added the type: bug label 2025-12-29 19:19:42 +01:00
adam closed this issue 2025-12-29 19:19:42 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 30, 2021):

This bug report doesn't contain enough information for someone else to reproduce the bug. Please expand on your steps to reproduce to include detailed instructions.

@jeremystretch commented on GitHub (Mar 30, 2021): This bug report doesn't contain enough information for someone else to reproduce the bug. Please expand on your steps to reproduce to include detailed instructions.
Author
Owner

@hyudra commented on GitHub (Mar 30, 2021):

@jeremystretch I just updated reproduce steps. Is the information suffice?

@hyudra commented on GitHub (Mar 30, 2021): @jeremystretch I just updated reproduce steps. Is the information suffice?
Author
Owner

@engageant commented on GitHub (Mar 30, 2021):

I'm unable to reproduce this on 2.10.8, but it sounds like a browser cache issue.

@engageant commented on GitHub (Mar 30, 2021): I'm unable to reproduce this on 2.10.8, but it sounds like a browser cache issue.
Author
Owner

@hyudra commented on GitHub (Mar 31, 2021):

I already clear all cache , change browser and try reproduce. It happened every time.
I'm using netbox-docker for building.

Weird that I tried on netboxdemo.com which is v2.10.1, but it didn't have same problem

How do I find logs to find out what happened?

@hyudra commented on GitHub (Mar 31, 2021): I already clear all cache , change browser and try reproduce. It happened every time. I'm using netbox-docker for building. Weird that I tried on netboxdemo.com which is v2.10.1, but it didn't have same problem How do I find logs to find out what happened?
Author
Owner

@jeremystretch commented on GitHub (Mar 31, 2021):

I'm also not able to reproduce this on v2.10.8.

@jeremystretch commented on GitHub (Mar 31, 2021): I'm also not able to reproduce this on v2.10.8.
Author
Owner

@hyudra commented on GitHub (Apr 1, 2021):

I found this issue kinda same as #3304 which resolve since v2.8.5

As I'm using netbox-docker, I'm not sure that it's relate to docker or not. I can view the device after restart whole docker. So, maybe it's a caching issue.

Should I open this issue to netbox-docker instead?

@hyudra commented on GitHub (Apr 1, 2021): I found this issue kinda same as #3304 which resolve since v2.8.5 As I'm using netbox-docker, I'm not sure that it's relate to docker or not. I can view the device after restart whole docker. So, maybe it's a caching issue. Should I open this issue to netbox-docker instead?
Author
Owner

@hyudra commented on GitHub (Apr 1, 2021):

After I upgraded to v2.10.8, seem it fixed.

I'll close this issue now. Thank you all.

@hyudra commented on GitHub (Apr 1, 2021): After I upgraded to v2.10.8, seem it fixed. I'll close this issue now. Thank you all.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4708