Unable to assign device bay to tenant #331

Closed
opened 2025-12-29 16:20:59 +01:00 by adam · 6 comments
Owner

Originally created by @Gelob on GitHub (Aug 5, 2016).

When trying to assign a device bay to a tenant we get the following error. This happens even if the parent device is not set to anything.

screen shot 2016-08-05 at 1 05 05 pm

However, we would like the functionality of being able to assign a device/chassis to one Tenant and then assign device bays to a different tenant.

Originally created by @Gelob on GitHub (Aug 5, 2016). When trying to assign a device bay to a tenant we get the following error. This happens even if the parent device is not set to anything. ![screen shot 2016-08-05 at 1 05 05 pm](https://cloud.githubusercontent.com/assets/422752/17446140/77e7562c-5b0d-11e6-8766-813de8d103c2.png) However, we would like the functionality of being able to assign a device/chassis to one Tenant and then assign device bays to a different tenant.
adam added the type: bug label 2025-12-29 16:20:59 +01:00
adam closed this issue 2025-12-29 16:20:59 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 5, 2016):

Individual device bays can't be assigned to tenants; only devices can. What steps did you take to trigger that error?

@jeremystretch commented on GitHub (Aug 5, 2016): Individual device bays can't be assigned to tenants; only devices can. What steps did you take to trigger that error?
Author
Owner

@csfreak commented on GitHub (Aug 7, 2016):

FWIW, I have lots of situations where it makes sense for device bays to have a different tenant than the parent device. Most common occurrence is Blade Servers and Blade Chassis. The Chassis always belongs to our IT "tenant", but individual servers can belong to any "tenant".

@csfreak commented on GitHub (Aug 7, 2016): FWIW, I have lots of situations where it makes sense for device bays to have a different tenant than the parent device. Most common occurrence is Blade Servers and Blade Chassis. The Chassis always belongs to our IT "tenant", but individual servers can belong to any "tenant".
Author
Owner

@Gelob commented on GitHub (Aug 8, 2016):

@jeremystretch I went to Devices > picked a device with device bays > then clicked on the name of one of the device bays which brought me to its device page, then clicked edit this device and attempted to change the tenant field.

@Gelob commented on GitHub (Aug 8, 2016): @jeremystretch I went to Devices > picked a device with device bays > then clicked on the name of one of the device bays which brought me to its device page, then clicked edit this device and attempted to change the tenant field.
Author
Owner

@jeremystretch commented on GitHub (Aug 8, 2016):

I think it might help to clarify some terminology. There are three components relevant here:

  • Parent device
  • Device bay
  • Child device

Both parent and child devices can belong to any tenant (or no tenant) independent of each other. Device bays within a parent device have no tenant assignment capability. So you can't say "Slot 1 of this device is reserved for Tenant A," but you can say "The device installed in slot 1 belongs to Tenant A."

@jeremystretch commented on GitHub (Aug 8, 2016): I think it might help to clarify some terminology. There are three components relevant here: - Parent device - Device bay - Child device Both parent and child devices can belong to any tenant (or no tenant) independent of each other. Device bays within a parent device have no tenant assignment capability. So you can't say "Slot 1 of this device is reserved for Tenant A," but you can say "The device installed in slot 1 belongs to Tenant A."
Author
Owner

@jeremystretch commented on GitHub (Aug 8, 2016):

This is a bug in the DeviceForm initialization for child devices; nothing specifically related to tenancy.

@jeremystretch commented on GitHub (Aug 8, 2016): This is a bug in the DeviceForm initialization for child devices; nothing specifically related to tenancy.
Author
Owner

@jeremystretch commented on GitHub (Aug 10, 2016):

Adding the text of the error for searchability:

<class 'django.utils.datastructures.MultiValueDictKeyError'>

"'site'"
@jeremystretch commented on GitHub (Aug 10, 2016): Adding the text of the error for searchability: ``` <class 'django.utils.datastructures.MultiValueDictKeyError'> "'site'" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#331