terraform-provider-proxmox: [3.0.1-rc2] Error refresh state USB passthrough device
Hi, migrates from 3.0.1-rc1 to 3.0.1-rc2 and fix error with USB passthrough device.
Proxmox VE cluster with version nodes: 8.0.4 and 8.2.2 Terraform - 1.8.4
USB manually config in VM by root and fix in .tfstate by terraform refresh.
Ignore changes in state VM from provider by this:
lifecycle {
ignore_changes = [
usb
]
}
In new version 3.0.1-rc2 error by terraform refresh or terraform plan:
│ Error: Invalid address to set: []string{"usb", "0", "id"}
│
│ with proxmox_vm_qemu._101_xxx,
│ on 101_xxx.tf line 3, in resource "proxmox_vm_qemu" "_101_xxx":
│ 3: resource "proxmox_vm_qemu" "_101_xxx" {
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 19 (5 by maintainers)
Commits related to this issue
- Merge pull request #1143 from Tinyblargon/#1032 Rework QemuUSB — committed to Telmate/terraform-provider-proxmox by Tinyblargon 2 years ago
Currently working on a fix. It will also ad support for mapped USB devices, so it will be feature complete with the PVE 8.2 GUI.
Hello. After updating from version 3.0.1-rc1 to version 3.0.1-rc3, I encountered the same error for VMs to which I added PCI-e device mapping. How can I add an ignore rule for devices that I added myself?
I tried this one:
But the error is stilling.
Hi! Thank you! Unfortunately this didn’t help.
@lucian-tx fixed a similar issue for the hostpci config. I applied the same path to usb devices in #1077, which fixes this issue for me.
OK, but there is no official documentation that this can be done un such way…
Latest major version is v3, not v2 Present - doesn’t mean that it really works 😃 and at the same time there is no documentation for this… Here it is necessary to get comments from the developers.