Telmate / terraform-provider-proxmox

Terraform provider plugin for proxmox
MIT License
2.02k stars 503 forks source link

PVE 8.0.4 Permissions | PVESDNUser role #838

Closed easmithdev closed 8 months ago

easmithdev commented 10 months ago

Terraform Version: 1.5.6 Telmate/Proxmox Version: 2.9.14

Hello all. I recently updated my PVE from 7.4.X to 8.0.4. It appears that PVE 8.0.4 now creates a "SDN localnetwork" on every node regardless as to whether you use the SDN feature or not. I noticed that when trying to create new resources using telmate/proxmox 2.9.14 with PVE 8.0.4, terraform will not throw an error in regard to permissions, but will instead give the appearance that it's creating the resource when in fact nothing is happening. The issue is that the PVE user/token that terraform is using to access the PVE API needs the "PVESDNUser" role associated to its permissions when working with PVE version 8.0.4. Perhaps a check for this permission can be added to the next release of the telmate/proxmox provider.

Workaround: When using PVE 8.0.4 with telmate/proxmox 2.9.14, and the resource appears to be continually looping at "still creating" with no apparent change to the PVE environment, check to see if the "PVESDNUser" role is associated to the PVE user/token that is being used by terraform. If not, then add it. That should resolve the problem.

glitchcrab commented 10 months ago

There is already a PR open for this https://github.com/Telmate/terraform-provider-proxmox/pull/809

No idea when the telmate crew will actually merge it though, they seem to have gone very quiet.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 60 days with no activity. Please update the provider to the latest version and, in the issue persist, provide full configuration and debug logs

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive for 5 days since being marked as stale.