KeyError: parent when accessing IP Address List #4064

Closed
opened 2025-12-29 18:32:56 +01:00 by adam · 1 comment
Owner

Originally created by @tscs37 on GitHub (Sep 2, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.7.9
  • NetBox version: 2.9.2
  • Docker Image: netboxcommunity/netbox:2.9.2-ldap

Steps to Reproduce

  1. Setup Netbox 2.8.9
  2. Fill in IP Addresses
  3. Set the table to display the "Parent" column or create a user setting like this:
tables.IPAddressDetailTable.columns: ['address', 'vrf', 'status', 'role', 'tenant', 'assigned', 'dns_name', 'description', 'parent']
  1. Upgrade to 2.9.x
  2. The parent column no longer exists, Netbox produces an error and does not indicate this is related to a bad user setting

Expected Behavior

A list of IP Addresses is shown, Netbox either warns the user that their table configuration is now invalid or clears the invalid column from the user settings.

Observed Behavior

Netbox shows an error page:

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'KeyError'>

'parent'

Python version: 3.7.9
NetBox version: 2.9.2
If further assistance is required, please post to the NetBox mailing list.

Originally created by @tscs37 on GitHub (Sep 2, 2020). Originally assigned to: @jeremystretch on GitHub. <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: 3.7.9 * NetBox version: 2.9.2 * Docker Image: netboxcommunity/netbox:2.9.2-ldap <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Setup Netbox 2.8.9 2. Fill in IP Addresses 3. Set the table to display the "Parent" column or create a user setting like this: ``` tables.IPAddressDetailTable.columns: ['address', 'vrf', 'status', 'role', 'tenant', 'assigned', 'dns_name', 'description', 'parent'] ``` 4. Upgrade to 2.9.x 5. The parent column no longer exists, Netbox produces an error and does not indicate this is related to a bad user setting <!-- What did you expect to happen? --> ### Expected Behavior A list of IP Addresses is shown, Netbox either warns the user that their table configuration is now invalid or clears the invalid column from the user settings. <!-- What happened instead? --> ### Observed Behavior Netbox shows an error page: There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'KeyError'> 'parent' Python version: 3.7.9 NetBox version: 2.9.2 If further assistance is required, please post to the NetBox mailing list.
adam added the type: bugstatus: accepted labels 2025-12-29 18:32:56 +01:00
adam closed this issue 2025-12-29 18:32:56 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 2, 2020):

Workaround: Navigate user profile > preferences and delete the column ordering for the affected table.

@jeremystretch commented on GitHub (Sep 2, 2020): Workaround: Navigate user profile > preferences and delete the column ordering for the affected table.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4064