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

Unable to assign device bay to tenant #433

Closed
Gelob opened this issue Aug 5, 2016 · 6 comments
Closed

Unable to assign device bay to tenant #433

Gelob opened this issue Aug 5, 2016 · 6 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@Gelob
Copy link
Contributor

Gelob commented 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.

@jeremystretch
Copy link
Member

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

@csfreak
Copy link

csfreak commented 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".

@Gelob
Copy link
Contributor Author

Gelob commented 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.

@jeremystretch
Copy link
Member

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 jeremystretch added type: bug A confirmed report of unexpected behavior in the application and removed awaiting reply labels Aug 8, 2016
@jeremystretch
Copy link
Member

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

@jeremystretch
Copy link
Member

Adding the text of the error for searchability:

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

"'site'"

if-fi pushed a commit to if-fi/netbox that referenced this issue Oct 1, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants