-
Notifications
You must be signed in to change notification settings - Fork 53
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
Static NICs settings not saved into statefile since v0.5.0 cause re-creation of NICs and failure #342
Comments
Hello, Looks like you are using a static IP outside of the address range. |
I don't think so, because the previous run of I will try again to confirm the behavior, and provide debug logs if needed |
I have just verified one more time. Here is the steps:
This is happening with the version v0.5.2. I've not tried with the latest version of the terraform provider (v1.0.1), but I can also try. |
I've verified in the terraform state file, and the
|
And if I compare with the output of a terraform state file that has been created with an earlier version of the provider (v0.4.3), the
|
I just tried with the latest version of the provider (v1.0.1), and the |
I also tried with the provider version v0.5.0, and the So to me it looks like the problem happened somewhere between the version v0.4.3 and v0.5.0.
|
Hello Thomas, Thanks for the details. We were able to reproduce it and we are investigating on the issue. |
Seems to be due to the fact that you describe a NIC with the OpenNebula adds the default security group (ID: 0) to every NIC, but the provider didn't expect that and thought that the NIC wasn't attached due to the diff with it's initial configuration. I still need to understand why this would happen since 0.4.3 release, at first glance this seems an older problem to me. As a side note it seems that we'll be able soon to update the NIC security group list for a running VM: OpenNebula/one#5612 Thank you for your help and sorry for this obvious problem |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
For some reason it's detecting that the NIC need to be added/updated, even if it's already here, with the right settings.
And then it fails to add/update the NIC:
Expected Behavior
There are no changes to the machine, because it got created 5 minutes before, so I would expect the provider to show that all the resources are already up-to-date.
Actual Behavior
It's detecting non-existent changes, and try to apply. But because the IP Address is static and already in use by this very same VM, it's failing to apply the non-existent changes.
Steps to Reproduce
terraform apply
on an existing VM that is using static IPImportant Factoids
References
The text was updated successfully, but these errors were encountered: