-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Bug]: Since upgrading to terraform 1.4.x, the provider keeps trying to remove and re-assign private networks #650
Comments
I can confirm that this also happens for me. Unfortunately we have some holidays coming up in Germany, so I don't think I will be able to take a deeper look at this until next week. Please continue to use Terraform v1.3 for now. |
I was able to supress the diff by adding resource "hcloud_server" "node" {
name = "gh-650"
location = "hel1"
server_type = "cx11"
image = "ubuntu-22.04"
network {
network_id = hcloud_network.cluster_network_eu_central.id
+ alias_ips = []
}
} |
Thanks for the feedback @apricote I can confirm that setting |
I think this regression was willfully added to Terraform v1.4 in hashicorp/terraform#32536 :
This is unfortunately a large refactoring that is expected of us here. As far as I can tell this should affects |
The same applies to public networks, issue and resolution. |
I'm currently using version 1.41.0 of the hcloud provider and Terraform 1.5.2. I'm assigning an alias IP to my resource, for example;
The alias IP is assigned successfully, but on subsequent run, it's removing the alias IP without any code change.
And on the next run it add the alias IP back again, etc. I've tried different versions of Terraform, including 1.3.8, 1,4,1 but the issue remains. Also tried with older versions of the hcloud provider with no luck. |
@furstenbergs If this still happens in Terraform 1.3, please open a new issue as its unrelated to this issue. Could you also post a full terraform configuration for reproduction? |
Hey @apricote, just ran into this and searched a while for the solution. The |
Hey @asteinba, sorry for not updating this issue. As far as I could find out, updating the the "new" Plugin Framework is the only way to get this fixed. |
This comment was marked as off-topic.
This comment was marked as off-topic.
…sign private networks Refs: hetznercloud/terraform-provider-hcloud#650
This is still happening in the latest provider version |
What happened?
After upgrading from terraform 1.3.9 to 1.4.x, I see following behavior.
NOTE: Am using the latest version for terraform-provider-hcloud.
Network resources
The
hcloud_server
resource then uses this network via:On a first run, everything is created correctly.
On subsequent runs (without changing any terraform files), I get:
Applying this plan detaches the private ip from the servers and re-attaches them. Further runs behave exactly the same.
Reverting back to 1.3.9 correctly shows:
What did you expect to happen?
Same output as 1.3.9.
Please provide a minimal working example
See
What ahappened?
field.The text was updated successfully, but these errors were encountered: