2.5b1 Migration of RackRole Failed #2111

Closed
opened 2025-12-29 17:22:24 +01:00 by adam · 1 comment
Owner

Originally created by @mmahacek on GitHub (Nov 9, 2018).

Environment

  • Python version: 3.6
  • NetBox version: 2.5 beta 1

Steps to Reproduce

Access /dcim/rack-roles page

Expected Behavior

The Rack Roles page should load. I checked my 2.4.7 server, and the page loads properly. On my test servers (which was a VM clone of production), there is an error when accessing the page.

Observed Behavior

<class 'ValueError'>

table data is of type <class 'dcim.models.RackRole'> but <class 'dcim.models.RackGroup'> is specified in Table.Meta.model
Originally created by @mmahacek on GitHub (Nov 9, 2018). ### Environment * Python version: 3.6 * NetBox version: 2.5 beta 1 <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce Access /dcim/rack-roles page <!-- What did you expect to happen? --> ### Expected Behavior The Rack Roles page should load. I checked my 2.4.7 server, and the page loads properly. On my test servers (which was a VM clone of production), there is an error when accessing the page. <!-- What happened instead? --> ### Observed Behavior ``` <class 'ValueError'> table data is of type <class 'dcim.models.RackRole'> but <class 'dcim.models.RackGroup'> is specified in Table.Meta.model ```
adam added the type: bugstatus: accepted labels 2025-12-29 17:22:24 +01:00
adam closed this issue 2025-12-29 17:22:24 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 9, 2018):

Wow. This has been wrong for over two years. It's just never been a problem since the RackRole and RackGroup models are so similar. Looks like a validation check was added in a more recent release of django-tables2.

@jeremystretch commented on GitHub (Nov 9, 2018): Wow. This has been wrong for [over two years](https://github.com/digitalocean/netbox/commit/ed0344916424ff0f4c8b756c900e16864eb7e6e9#diff-516bb36270a80a0461e7b9ce20f91febR117). It's just never been a problem since the RackRole and RackGroup models are so similar. Looks like a validation check was added in a more recent release of django-tables2.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2111