Skip to content
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

Network parameters cannot be removed from cloudinit settings #1042

Closed
maksimsamt opened this issue Jun 11, 2024 · 3 comments · Fixed by #1049
Closed

Network parameters cannot be removed from cloudinit settings #1042

maksimsamt opened this issue Jun 11, 2024 · 3 comments · Fixed by #1049
Assignees
Labels

Comments

@maksimsamt
Copy link
Contributor

System details:

  • Proxmox VE 8.2.2
  • Terraform v1.8.4
  • terraform-provider-proxmox v3.0.1-rc3

Affected cloudinit network parameters:

  • searchdomain
  • nameserver
  • ipconfig0-15

Creating new resources works as expected, mentioned cloudinit network parameters are correctly created.

These parameters can be changed by provider.

Unfortunately, it is not possible to remove these parameters by provider.

By removing the searchdomain and nameserver arguments from the config, provider ignores this change and does not take any action with the output: No changes. Your infrastructure matches the configuration.

By removing ipconfig0-15, provider tries to remove this, but after apply the previously created ipconfig it still exists. When I try to run terraform apply again, it tries to remove this again and again with no success. The similar situation is with network device removing - #1027.

These parameters can only be removed through the Proxmox GUI.

@Tinyblargon
Copy link
Collaborator

Tinyblargon commented Jun 11, 2024

@maksimsamt I noticed some weird behavior with cloud-init. Sadly, the scope of the problem got too big for the RC3 release. I'm working on it in Telmate/proxmox-api-go#339

@Tinyblargon Tinyblargon self-assigned this Jun 13, 2024
@Tinyblargon
Copy link
Collaborator

@maksimsamt Could you check if #1049 fixes this for you?

@maksimsamt
Copy link
Contributor Author

maksimsamt commented Jun 19, 2024

@maksimsamt Could you check if #1049 fixes this for you?

@Tinyblargon,

  • searchdomain - works, can add and remove
  • nameserver - works, can add and remove
  • ipconfig0-15 - doesn't work, can add, but remove cannot, when remove behavior as before - when I try to run terraform apply again, it tries to remove this again and again with no success...
    There was wrong test from my side for ipconfig0-15...
    Now I can confirm, that it also works, can add and remove!

Tinyblargon added a commit that referenced this issue Jul 26, 2024
Update `cloud-init` for proxmox-api-go #339
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants