-
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
Upgrade to 5.0.0 breaks pubsub #16129
Comments
I can repro the issue with blow config resource "google_pubsub_topic" "example" {
name = "example-topic"
message_storage_policy {
allowed_persistence_regions = [
"europe-west3",
]
}
labels = {
terraformed = "true"
component = "component"
seed = "seed"
}
}
terraform {
required_providers {
google = {
version = "~> 5.0.0"
#version = "~> 4.84.0"
#version = "~> 4.80.0"
}
google-beta = {
version = "~> 5.0.0"
#version = "~> 4.84.0"
#version = "~> 4.80.0"
}
}
} |
The error looks to be the same as #16091, is this a duplicate? |
Local test run with the latest source code passed. |
close as dup of #16091 |
The issue is moving from 4.x to 5.x? Does the local test run cover that situation? When will the apparent fixes be released? |
@dogmatic69 Yes it is an issue with existing resources upgrading from 4.x to 5.0. I assume by local test @edwardmedia meant manually testing the upgrade with the latest source code on
Target is Monday October 9th with v5.1.0 |
I've tried the workaround and seem to be working again.
|
Seems like once the new tags are applied, the next apply with no changes breaks again. So the workaround only works once. |
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
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
The plan is as follows with many similar errors / updates to the topic. For reference the value of "seed" is "" (empty string) and has not changed but is passed in as a variable.
Panic Output
Expected Behavior
it should update the resource as was the case in 4.x
Actual Behavior
apply fails with the stated error
Steps to Reproduce
Create simple topic in 4.x, provision, update to 5.x and try again
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: