-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Status Decommissioning missing for virtual machines #4093
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
Comments
This is reasonable to me. when it accepted, let me set Decommissioning to virtual machine. This change will be like this. LEGACY_MAP might not be necessary?
|
Just opened PR #4102 before accepted. |
Can we expand this further and add all the missing status's to give vms parity with devices. so add;
|
I don't see a valid use case for staged or inventory. A staged device is one that has been physically installed but not yet provisioned: This concept doesn't apply to virtual machines. Same with inventory. Planned and failed make sense, I think. |
I agree with planed and failed. Failed is a valid state on some hypervisors. That said, staged could make sense, if you create the VM but don't install the OS. You could also use planned for that as well however. |
Yes, we can set 'Staged' as the state of pre-provisioning or pre-installing. No thought about 'Inventory'.
And color labels should be the same as device. So like this
|
I'm with @nathbooth that the status for devices and virtual machines should be the same. What is status Inventory used for devices? I can think of status Inventory for devices and virtual machines as servers, which are online, but you don't want to run Ansible playbooks agains them, if you use NetBox as inventory for Ansible. |
The "inventory" status implies that the physical device is available for deployment but has not been brought online or configured. (Not to be confused with "inventory" from the Ansible vernacular.) |
I think the status attributes are primarily used to reflect workflow for specific type of object. |
@vsvetlov This issue is limited to virtual machine statuses. Let's keep the conversation focused on that please. |
I feel that the current status is quite subjective. I.e. the ‘inventory’ status @jeremystretch described above sounds more like planned. It’s probably pragmatic that we update the wiki with some suggested definitions. I think all of the above bar inventory can apply to both devices and vm’s. |
For my case, I set 'Inventory' to a device just to be stocked in a rack. So 'Inventory' for virtual machine is not applicable to me because no such case in a virtual machine. I think it's ok to add the status if giving an usecase. |
I would agree that inventory isn’t required for virtual machines, I was more musing that an informal definition would help |
Changing this back to "accepted" with the following statuses:
|
Fixes #4093: Additional status choices for vms
Environment
Proposed Functionality
Currently a virtual machine can only have as status:
I'm missing here at least Decommissioning as status.
Use Case
I would distinguish between Offline and Decommissioning in this way:
Offline is a VM that is temporary powered off and will be later powered on again.
Decommissioning is a VM that is powered off and will be later deleted.
Our decommissioning process is actually to power off a VM and then wait a reasonable time if still someone came up who needs this VM.
Being able to set Decommissioning as status would help to track VM's planned for decommissioning.
Maybe it also makes sense to use for virtual machines the same status as for devices.
If you think of devices as hardware servers, the same processes are often used for hardware servers and VM's. Having the same status choices for both of them would help here.
Database Changes
None
External Dependencies
None
The text was updated successfully, but these errors were encountered: