-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_storage_bucket
with two lifecycle rules with different values for no_age
always reports change
#17314
google_storage_bucket
with two lifecycle rules with different values for no_age
always reports change
#17314
Comments
Confirmed bug. The logic for setting |
It looks like the initial ticket did not include the affected resources, but they were edited in later. Should be ready to forward now. |
The reason why there was no affecter resource and many other things is because from the Google Terraform provider page I clicked on the file a bug link, which just opens an empty new bug page, but doesn't use the Bug template. Could you see with Hashicorp to include replace that URL with the bug URL: https://github.com/hashicorp/terraform-provider-google/issues/new?assignees=&labels=bug&projects=&template=00_bug.yml |
Thanks @kustodian for pointing that out. I've filed #17502 to have that fixed. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
to expedite investigation and resolution of this issue.
Terraform Version
Affected Resource(s)
google_storage_bucket
Terraform Configuration
If we create a bucket with two lifecycle rules, but with those rules having different values for
no_age
likes this:Debug Output
Terraform will always report a change like this:
Expected Behavior
Terraform shouldn't report any changes outside of TF or direct changes.
Actual Behavior
Terraform reports changes, but what's even more interesting is that it also reports changes outside of Terraform, which is odd because it reports the same changes as the real change.
If we change
no_age = false
in the first lifecycle rule then all works fine, except that there is something odd as well with TF reporting changes outside TF which I'll explain further.Steps to reproduce
Just run
terraform apply
of the code above multiple times (change bucket name because those are globally unique).Important Factoids
If in the resource above we set
no_age = false
and runterraform apply
, TF reports changes both outside and proper change, then I runterraform apply
again and TF now reports just the change outside TF, then if I runterraform apply
for the third time, then TF doesn't report any changes. This is also a bug.Here is the output of three consecutive
terraform apply
before changingno_age = false
in the first lifecycle rule above:These are two bugs, but I guess the core of the problem is the same.
b/327610882
The text was updated successfully, but these errors were encountered: