-
Notifications
You must be signed in to change notification settings - Fork 428
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
Provider produced inconsistent result after apply #2209
Comments
I am seeing the same behavior, in a config that creates multiple databases with multiple schemas in each database. It fails with the same "Root object was present, but now absent." when attempting to create schemas, but it does create the schema so I also see the "object already exists" error on subsequent runs. Rolling back to 0.73 fixes it for me. |
Exact same behavior happening for me on 0.77.0 - the last good release was 0.73, everything after is broken in some way. |
I confirm I don't have issues on 0.73 either. |
Hey @maxpowis-bp. Thanks for reporting the issue. This is a problem after #2082 released in v0.74.0. It may be connected with the ShowByID implementation for Schemas. We could reproduce the error for a case when the schema has the same name in two different databases. It may be one of many problems, but let's try this fix first. Also, it is constructive to provide a configuration (or a simplified configuration) that shows an error. |
Hey @maxpowis-bp Could confirm that 0.74.0 resolves your issue? |
Hi @sfc-gh-jcieslak unfortunately I can't. The mission has reached an end and I've handed over the components to the client. |
Alright, closing the issue then. Thanks :) |
Terraform CLI and Provider Versions
Terraform cli version: v1.6.4 (as configured on my workspace in terraform-cloud)
Snowflake provider version: v0.76.0
Terraform Configuration
Expected Behavior
My project is managed a bunch of databases, schema, roles etc. I expect terraform and the snowflake provider to deal properly with resource creation and sequencing of operations.
Actual Behavior
I quite often get an error at apply time for my schema objects. Here's the last one while adding new databases and schema's to my configuration.
On second attempt I get this:
After I remove the schema's manually, the next run completes successfully.
Steps to Reproduce
It's quite a complex project, I have a module that creates the databases, and another module that creates the schema's (and has a dependency to the database module)
How much impact is this issue causing?
Medium
Logs
I can't share this...
Additional Information
It seems I didn't encounter any of those issues while I was using provider version v0.70.1.
Happens much more since I upgraded to 0.76.0
The text was updated successfully, but these errors were encountered: