Unable to set tenant when creating objects #995

Closed
opened 2025-12-29 16:27:40 +01:00 by adam · 4 comments
Owner

Originally created by @martink2 on GitHub (May 25, 2017).

Python version:v2.7
NetBox version:v2.0.3

Since the latest upgrade I can no longer set the tenant on any object i
add to Netbox via the create object(tested with IP's, Devices, Racks,
Subnet's). The Drop Down is not populated with any of my tenants.

When importing from CSV i can set the tenant just fine. Also it
is possible to set the tenant on objects when using bulk operations.

Thanks

Martin

Originally created by @martink2 on GitHub (May 25, 2017). Python version:v2.7 NetBox version:v2.0.3 Since the latest upgrade I can no longer set the tenant on any object i add to Netbox via the create object(tested with IP's, Devices, Racks, Subnet's). The Drop Down is not populated with any of my tenants. When importing from CSV i can set the tenant just fine. Also it is possible to set the tenant on objects when using bulk operations. Thanks Martin
adam closed this issue 2025-12-29 16:27:40 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 25, 2017):

Please provide the list of steps necessary to reproduce this behavior.

@jeremystretch commented on GitHub (May 25, 2017): Please provide the list of steps necessary to reproduce this behavior.
Author
Owner

@martink2 commented on GitHub (May 25, 2017):

Click "IP Space" -> "Add a Prefix" (url-path /ipam/prefixes/add/)
Expected Behavior: Tenant Dropdown Populated with Tenants
Observed Behavior: Tenant Dropdown contains only "---------"

This is the case for all objects not just Prefixes.

To clarify a bit, I have 6 Tenants defined currently but none of them are in
a Tenant Group nor do i have Tenant Groups at all.

I also did one further Test. When I create a Tenant Group the behavior changes:

Click "Add a Prefix" -> Tenant Group "---------" and Tenant Dropdown only contains "-------"
Select Tenant Group "Test" -> Tenants in Group Tests are Selectable in Tenant Dropdown
Select Tenant Group "----------" again -> All tenants without a group are selectable in Tenant Dropdown.

Which lets me to believe it is a problem with the form initialization.

@martink2 commented on GitHub (May 25, 2017): Click "IP Space" -> "Add a Prefix" (url-path /ipam/prefixes/add/) Expected Behavior: Tenant Dropdown Populated with Tenants Observed Behavior: Tenant Dropdown contains only "---------" This is the case for all objects not just Prefixes. To clarify a bit, I have 6 Tenants defined currently but none of them are in a Tenant Group nor do i have Tenant Groups at all. I also did one further Test. When I create a Tenant Group the behavior changes: Click "Add a Prefix" -> Tenant Group "---------" and Tenant Dropdown only contains "-------" Select Tenant Group "Test" -> Tenants in Group Tests are Selectable in Tenant Dropdown Select Tenant Group "----------" again -> All tenants without a group are selectable in Tenant Dropdown. Which lets me to believe it is a problem with the form initialization.
Author
Owner

@jeremystretch commented on GitHub (May 25, 2017):

I'm not able to reproduce this problem on the current develop branch (2.0.4-dev). It looks like it may have been fixed by 6719578f14 for #1212.

I'll close this issue for now with the assumption that it is fixed in 2.0.4, but please comment here again if you continue to experience problems after the 2.0.4 release.

@jeremystretch commented on GitHub (May 25, 2017): I'm not able to reproduce this problem on the current develop branch (2.0.4-dev). It looks like it may have been fixed by 6719578f1433efb994f5274b5a8da7beae387070 for #1212. I'll close this issue for now with the assumption that it is fixed in 2.0.4, but please comment here again if you continue to experience problems after the 2.0.4 release.
Author
Owner

@martink2 commented on GitHub (May 25, 2017):

Thanks, i pulled in the commit and it fixes the issue.

@martink2 commented on GitHub (May 25, 2017): Thanks, i pulled in the commit and it fixes the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#995