-
Notifications
You must be signed in to change notification settings - Fork 546
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
[3.0.1-rc2] Error refresh state USB passthrough device #1032
Comments
Try this ...
ignore_changes = [
usb[0]
]
... or ...
ignore_changes = [
usb[0].host
usb[0].usb3
]
... |
Hi! Thank you! |
Can you share your config snippet with usb block/blocks? |
The same error with hostpci section block:
|
...
dynamic hostpci {
... As per Terraform documentation it should be like this: ...
dynamic "hostpci" {
...
I couldn't find anything similar in Temate provider documentation |
(anyway it present in
|
|
Block with USB commented out and don`t use. Cause: Therefore, we set it up manually and ignore USB in config provider. Uncommenting the block gives the same error. |
Seems something you are doing wrong...
As for this, check and try out this Proxmox Forum thread:
You can try as well use other Mapping privileges for that:
|
@maksimsamt Thanks for the information about the directive |
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. |
I am getting the same error when using
Did some bisecting of the plugin and is the commit that introduced the change: 819869a. I don't know the code, maybe before the change the data from the proxmox API was just ignored and never put into the state because it didn't/doesn't match the expected format? |
Hello, any news on that? I've created machine using root account for authentication everything worked as expected including usb creation but after that i can no longer run |
Same here:
Does not matter if I add the USB passthrough through the webui or the TF itself. |
Hi! Adding user for terraform provirder access:
didn't help. Regardless of whether the block is commented out or not. The error persists and Terraform cannot |
@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. |
Thanks, this fixed it for me. |
I just tried it and I don't get this error anymore: The only change I'm aware of is updating the proxmox terraform provider to version |
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. |
Hi, migrates from
3.0.1-rc1
to3.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
byterraform refresh
.Ignore changes in state VM from provider by this:
In new version 3.0.1-rc2 error by
terraform refresh
orterraform plan
:The text was updated successfully, but these errors were encountered: