-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
☂️ Migrate VM resource implementation to Plugin Framework #1231
Comments
Hi, i think that we need to add Thanks. |
@bpg , |
Hi @maksimsamt! It's difficult to estimate, as my availability for this project is quite unpredictable. I work on it in my free time, but that's essentially it. I'm still establishing the best approach to re-implementing the functionality, common reusable patterns, test harness, etc., and this initial stage is almost done. After that, I'll formalize the design decisions in some contribution guidelines so anyone willing to help (and speed thing up) can get on board more easily. But for now, as you can see from the status of the checkboxes in the list above, I've only scratched the surface in terms of functionality coverage. The VM2 resource is really far away from being functionally complete. |
It's important to take you time on such large topics. Are all of list entries above possible to be implemented on their own or are there some dependencies between each other? I'd like to help when my (also limited) free-time allows it so when it is possible to simply pick one of those it's easy to distribute contributions. |
@svengreb Thanks for the offer, much appreciated!! |
This is an "umbrella" ticket (call it an epic, or whatever) to track the migration of the
proxmox_virtual_environment_vm
resource to the Plugin Framework.Motivation
Check out the benefits of Plugin Framework from HashiCorp. There are quite a lot.
Specific to this provider:
The Plugin Framework gives better control over
Optional
andComputed
fields and their defaults, which is extremely useful in handling theclone
operation. During cloning, we inject lots of attributes from a template that are not present in the clone while also overwriting some of the template parameters from the clone.Related:
boot_order
is ignored when clonning a VM #850cpu
attributes with defaults when cloning #1219Ability to manage data transformations via custom data types (various conventions for lists/sets in the Proxmox API).
Better support for collection data types (lists, and specifically sets, to handle unordered collections of items).
Challenges
There's a vast amount of functionality to port, and some (or most?) of it needs to be re-implemented to leverage the benefits of the Provider Framework data model/custom types.
Severe lack of the provider's code test coverage. The changes/re-implementation will introduce new bugs that will be hard to catch.
Compatibility
Inevitably, some attribute formats and semantics will be incompatible with the old version. Also, some attributes will be renamed/removed. Known incompatibilities are marked with ❗ below.
Implementation
The
proxmox_virtual_environment_vm2
resource contains the new implementation.Status of features/attributes:
acpi
boot_order
description
id
❗hook_script_file_id
machine
migrate
name
node_name
on_boot
pool_id
protection
reboot
smbios
started
stop_on_destroy
tablet_device
tags
template
agent
audio_device
bios
cdrom
❗clone
cpu
disk
efi_disk
hostpci
initialization
keyboard_layout
kvm_arguments
memory
network_device
numa
operating_system
serial_device
scsi_hardware
startup
timeouts
❗tpm_state
usb
vga
watchdog
The text was updated successfully, but these errors were encountered: