CloudSQL instances with auto disk resizing fail to update on the first try but succeed on retrying #2307
Labels
awaiting-upstream
The issue cannot be resolved without action in another repository (may be owned by Pulumi).
kind/bug
Some behavior is incorrect or out of spec
Describe what happened
CloudSQL for Postgres instances created with
diskAutoresize: true
always fail if the size of the database has changed since the last time they were updated via pulumi with:Re-running
pulumi up
however succeeds.It looks like pulumi caches the old disk size (not sure where since I couldn't find it in the output of
pulumi stack export
) and sends it to GCP which then rejects the request. The first run updates this cache allowing subsequent attempts to succeed.This is very similar to #549 except for the
ignoreChanges
part.Sample program
Do the same steps as in #549 (comment) (removing the
ignoreChanges
lines).Then re-run
pulumi up
after making some small change to the script. I was trying to set a database flag.databaseVersion: "POSTGRES_13", + databaseFlags: [{"temp_file_limit", 500000}], settings: {
Log output
Affected Resource(s)
CloudSQL for Postgres instances
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: