millions-train-91139
09/30/2025, 9:40 AMgcp-pulumi@v9 gives me:
error: sdk-v2/provider2.go:572: sdk.helper_schema: retention_period in state has unexpected type string: provider=google-beta@9.1.0
Shouldn’t pulumi run state upgrades of the underlying terraform provider?
https://github.com/GoogleCloudPlatform/magic-modules/pull/15000/files
ResourceStorageBucketStateUpgradeV3modern-spring-15520
09/30/2025, 11:16 AMmodern-spring-15520
09/30/2025, 11:21 AMmillions-train-91139
09/30/2025, 12:38 PMmodern-spring-15520
09/30/2025, 12:55 PMminiature-twilight-47355
09/30/2025, 4:33 PMmillions-train-91139
09/30/2025, 4:33 PMmillions-train-91139
09/30/2025, 4:33 PMminiature-twilight-47355
09/30/2025, 4:34 PMminiature-twilight-47355
09/30/2025, 4:36 PMmillions-train-91139
09/30/2025, 4:39 PMmillions-train-91139
09/30/2025, 4:39 PMminiature-twilight-47355
09/30/2025, 4:41 PMpulumi up --refresh --run-program to perform the update? If not, it's possible that might be enough to coerce the state. (We plan to make both of those flags enabled by default for version upgrades in the future.)millions-train-91139
09/30/2025, 4:41 PMmillions-train-91139
10/03/2025, 11:36 AMpulumi up --refresh --run-programmillions-train-91139
10/03/2025, 11:36 AMmillions-train-91139
10/03/2025, 11:37 AMv8.32.1 beforemillions-train-91139
10/03/2025, 11:38 AMmillions-train-91139
10/03/2025, 11:39 AMmillions-train-91139
10/03/2025, 11:45 AMI1003 14:40:43.886103 15736 eventsink.go:59] [DEBUG] Attributes before migration: map[string]interface {}{"autoclass":[]interface {}{}, "cors":[]interface {}{}, "custom_placement_config":[]interface {}{}, "default_event_based_hold":false, "effective_labels":map[string]interface {}{}, "enable_object_retention":false, "encryption":[]interface {}{}, "force_destroy":false, "hierarchical_namespace":[]interface {}{map[string]interface {}{"enabled":false}}, "id":"READCTED", "ip_filter":[]interface {}{}, "labels":map[string]interface {}{}, "lifecycle_rule":[]interface {}{}, "location":"REDACTED", "logging":[]interface {}{}, "name":"REDACTED", "project":"REDACTED", "project_number":"REDACTED", "public_access_prevention":"inherited", "requester_pays":false, "retention_policy":[]interface {}{map[string]interface {}{"is_locked":true, "retention_period":"315360000"}}, "rpo":interface {}(nil), "self_link":"<https://www.googleapis.com/storage/v1/b/REDACTED>", "soft_delete_policy":[]interface {}{map[string]interface {}{"effective_time":"2024-03-01T08:00:00.000Z", "retention_duration_seconds":"604800"}}, "storage_class":"STANDARD", "terraform_labels":map[string]interface {}{}, "time_created":"2023-01-11T11:43:36.161Z", "timeouts":interface {}(nil), "uniform_bucket_level_access":true, "updated":"2024-05-26T07:42:28.024Z", "url":"<gs://REDACTED>", "versioning":[]interface {}{map[string]interface {}{"enabled":false}}, "website": []interface {}{}}millions-train-91139
10/03/2025, 11:45 AM"retention_period":"315360000"
Is a string before migration 🤔millions-train-91139
10/03/2025, 11:53 AMmillions-train-91139
10/03/2025, 1:05 PMpolicy = &storage.BucketRetentionPolicyArgs{
IsLocked: pulumi.BoolPtr(true),
RetentionPeriod: pulumi.Sprintf("%d", 60*60*24*365*10),
}millions-train-91139
10/03/2025, 1:06 PMcareful-journalist-94040
10/03/2025, 5:26 PMcareful-journalist-94040
10/03/2025, 6:09 PMmillions-train-91139
10/05/2025, 5:29 AMcareful-journalist-94040
10/06/2025, 4:52 PMcareful-journalist-94040
10/15/2025, 6:30 PMmillions-train-91139
10/17/2025, 2:58 PMmillions-train-91139
10/17/2025, 3:03 PMmillions-train-91139
10/17/2025, 3:09 PMcareful-journalist-94040
10/17/2025, 4:30 PMmillions-train-91139
10/17/2025, 4:37 PM8.41.1 it worksmillions-train-91139
10/17/2025, 4:37 PM8.32.1 it doesn’tcareful-journalist-94040
10/17/2025, 4:37 PMmillions-train-91139
10/17/2025, 4:38 PMmillions-train-91139
10/17/2025, 4:38 PMcareful-journalist-94040
10/17/2025, 4:38 PMmillions-train-91139
10/17/2025, 4:38 PMmillions-train-91139
10/17/2025, 4:48 PM8.32.1 -> 8.41.1 -> v9
I assume it has something to do with __pulumi_raw_state_delta object in the state?
It is only available if the object was initially created with 8.41.1 but does not appear when upgrading from 8.32.1 to 8.41.1.
So still broken
@miniature-twilight-47355careful-journalist-94040
10/17/2025, 4:51 PMmillions-train-91139
10/17/2025, 5:40 PMpulumi refresh solves it in version 8.41.1 before continuing on to v9millions-train-91139
10/17/2025, 5:42 PMmillions-train-91139
10/17/2025, 5:43 PMmillions-train-91139
10/17/2025, 5:43 PMcareful-journalist-94040
10/17/2025, 10:50 PM8.32.1 to 8.41.1 and the attempted going to 9.3.0 but got the same errorenough-garden-22763
10/20/2025, 2:07 PMenough-garden-22763
10/20/2025, 2:08 PMmillions-train-91139
10/20/2025, 2:09 PMenough-garden-22763
10/20/2025, 2:11 PM