-
Notifications
You must be signed in to change notification settings - Fork 686
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
system_tags on oci_core_instance triggers a modification request every time #1924
Comments
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you. |
@lawa1974 Are you trying to specify system-tags in your Terraform config for the instance? Please post a snippet of your config file to help me better understand what is happening. |
No, I don't want to do anything with system tags. I created an instance, and if, for example, I call 'terraform apply' next time without any change in terraform code, Terraform wants to change the system tags (see the snippet above). I would expect the following output: But, we get this output: |
I'm still trying to reproduce this and could use some more information:
|
Hi,
|
@lawa1974 I'm not having any luck reproducing this issue. If you could share your Terraform configuration for this instance that would be helpful. |
Hi @nolancaster. Thank you for looking at this issue. My team are facing a similar issue. Just to confirm you are trying to reproduce this issue on a Private Cloud Appliance (PCA) engineered system version 3, or on OCI?. Much like @lawa1974 we are not updating We have tried including system_tags in a |
My vm creation looks similar to this:
|
A satisfactory solution might be found with this hashicorp/terraform#23814 but it involves modifying the provider so that the |
same issue here with PCA 3.0.2. Expected behavior for 17 VMs deployed on PCA: Current behavior: |
Is there any update on this bug? I know that the PCA is a much smaller use case than OCI; however, this makes it very difficult to identify actual changes in a large environment. We effectively can't use any automation that works on "detailed-exitcode," as this obscured by the high volume of (non-existent) changes. This is effectively the same issue as Issue 1923 with the same, painful result. |
The root of this issue appears to be a difference in the API responses from a Private Cloud Appliance (PCA) versus OCI. Responses for the GetInstance operation do not provide a This differs from the behaviour of the In the case of a local state file manually editing an oci_core_instance resources The reported changes from the terraform plan can be removed by altering how the provider stores the fields |
PR For this issue has been raised #2137 |
FWIW, this issue still exists in 5.45.0. |
still exists in 6.15.0 |
@tf-oci-pub, could we please have an acknowledgement that this is still an issue, and whether the fix will be the provider or the API response? |
Community Note
Terraform Version and Provider Version
Terraform v1.3.6
on linux_amd64
Affected Resource(s)
affected_resources = oci_core_instance
Terraform Configuration Files
...
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Every terraform run results in a modification. Adding system_tags to lifecycle { ignore_changes = [system_tags] } doesn't help. Still triggers the modification request though.
Steps to Reproduce
Run terraform apply once to create the instance
Run terraform apply again - this should not result in any modification.
Important Factoids
We run terraform /OCI provider against a Oracle Private Cloud Appliance (PCA).
References
The text was updated successfully, but these errors were encountered: