-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Discrete resource tracking for VirtualMachines #8356
Comments
#1887 #4783 and others have similar intend approach, according to NetBox maintainer, this might push NetBox to asset management tools or virtual orchestration tools. But I would like to have this feature to be accepted. In v3.2 milestone, I think the inventory items in device has a huge change of core fields. As long as NetBox grows, the custom field (reference to object or to network interfaces) and potentially inventory item in virtualization will make this more friendly to users and a better source of truth for automation. In our use case, we developed a custom script to provision our virtual machine to document the network. We would like to pass and document other possible proposed values of virtual machine. Our alternative approach is using custom field (json) but this is hard for our script users to audit or track the value based on the json field instead of object based field. A similar inventory item model as device to virtual machine can be introduced. |
I see that the request were closed with the remarks 'NB primary function is to manage network infrastructure, not end hosts.' I feel that Netbox was not intended to do that (Devices are mainly network focused and adding Servers quickly hits limitations), but step by step it could become a 100% physical world tool |
NetBox version 3.1.0 We are using VM's with CEPH store or local store in our own OpenNebula clouds. For now we have to use custom field for separate store types. We would like to use VM types or inventory items for VMs like as Device. |
I appreciate the use case here, but I'm not sure it makes sense to repurpose the existing inventory item model, which supports fields like |
I think a new model would be appropriate. I guess the question is what fields do we want to capture? The problem with VM resources is they are sometimes all over the map with what you might actually want to capture. For example,
I think, if we wanted to get a decent model we might want to revisit the VM model all together and see if we want to do things like modelling vswitches/sans and stuff as well. In the meantime, perhaps a few freeform text fields would be all that is needed but that does make automatic migrations difficult. |
My specific use case is passing pcie nics through from the host to a vm running a software firewall/router appliance. If we are documenting the network, I would argue that we have to go inside the hosts to have complete documentation. |
My use case is has 2 parts: vmware vm with direct attache lun or physical server: Well this is a bit more complex. I could read out the storage subsystem and gather all the disks and create them in a "virtual disk/lun device" The tricky part would be mapping it to the correct server (hate to do this manual) There is also the question what "storage" you want? I would suggest splitting up storage into a backend layer and a front end layer
frontend:
The underlying use case is a question I got that mgmt wants to know how much storage/cpu/... a certain department (tenant) is using so a replicated LUN needs to have a checkmark "replicated" so it ha a factor times 2. |
Would like to be able to document passthrough devices, such as hddd, nic, gpu. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide. |
Could we possibly reduce the scope initially for this to being able to add multiple disks? The current field ‘disk space’ seems less useful as @PieterL75 outlined since many vms have multiple disks |
I upvote this idea (possibility to add inventory items to virtual-machines). I was thinking of using inventory items to list certificates and licences attached to a device (physical or virtual), but it's not possible for VM. |
@pycolas the InventoryItem model was constructed specifically to represent physical resources; hence the presence of e.g. the serial number and manufacturer fields. These wouldn't make sense in the context of a virtual resource, so we'd need to use a separate model, much like we do for interfaces belong to VMs vs. devices. I'm tagging this as |
We use Inventory items to track individual Software license keys. Having this for VM would be much appreciated. |
Hi, I also go the question to add the used licenses to the system. Inventory items would indeed a nice solutions but it lacks, as already mentioned, the use of the VMs. Hope this feature can be added soon. |
I also will appreciate to have the disks details for each VMs |
In an effort to progress work on this FR, I'm going to narrow its scope as suggested above to virtual disks. We can introduce a new I'd be open to introducing a similar change for modeling discrete virtual CPUs as well, however there doesn't seem to be any demand for it, and it doesn't seem to me like it would bring much value. |
One other thing I am seeing demand for would be virtual switches/etc (including their relation to the specific host or cluster's uplinks). We may want to look at that after this FR is completed (as a new FR of course). |
* 8356 add virtual disk model * 8356 add supplemental forms * 8356 add menu * 8356 cleanup views * 8356 virtual machine tab * 8356 migrations * 8356 vm disk tables * 8356 cleanup * 8356 graphql * 8356 graphql * 8356 add components button * 8356 bulk add on virtualmachine * 8356 bulk add fixes * 8356 api tests * 8356 news tests add rename * 8356 VirtualDiskCreateForm * 8356 fix test * 8356 add todo to remove disk from vm * 8356 review changes * 8356 fix test * 8356 deprecate disk field * 8356 review changes * 8356 fix test * 8356 fix test * Simplify view actions * 8356 review changes * 8356 split trans tag * 8356 add total virtual disk size to api * 8356 add virtual disk list to virtual machine detail view * 8356 move virtual disk size to property * 8356 revert property * Tweak display of deprecated disk field * 8356 render single disk field * 8356 update serializer * 8356 model property * 8356 fix test * 8356 review changes * Revert disk space annotation * Use existing disk field to store aggregate virtual disk size * Introduce abstract ComponentModel for VM components * Add search index for VirtualDisk * Misc cleanup --------- Co-authored-by: Jeremy Stretch <[email protected]>
NetBox version
v3.1.5
Feature type
Change to existing functionality
Proposed functionality
Device have the option to document inventory items. (cpu, disks, blades, modules, ...)
For virtual machines,this option is not available.
I would like to see the possibility to add inventory items to virtual-machines
Use case
VM can have additional 'hardware' like disks.
The inventory items on a VM will allow us to document how many disks and what size the disks has.
By default we have no CDROM attached to the VM. with the inventory we could add a CDROM to document that exception
Database changes
extend the dcim/inventory-items model to be attached to virtualization/virtual-machines
External dependencies
No response
The text was updated successfully, but these errors were encountered: