-
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_composer_environment says it failed when it didn't #4146
Comments
What if you remove "apache-airflow" from pypi_packages? Composer manages AirFlow automatically. |
Yes, that works. But the problem is that terraform should still reflect the state in GCP. Because terraform says that it failed, but in GCP the environment was still created successfully. |
It sounds like the API is telling us there was an error, but it's a recoverable error. I think we could solve this a few ways:
|
@paddycarver how about trying to fetch the composer environment before removing the id from state. I believe it's a fair assumption that if the resource is still get-able then it's in a state that exists but is in error and likely tainted. |
I can't repro this issue. From terminal, Below is the HCL I was using, followed by the request & response in the log.
|
Hi @Kardiff! I’ve been looking into this some, and after some trial, error and discussion, I think it might be working as intended in After updating to Thanks! |
* Add support for custom info types to inspect template. * Add use in hotword rule Signed-off-by: Modular Magician <magic-modules@google.com>
Based on @megan07's comment and no response from the user I will be closing this ticket. |
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
Terraform Version
0.11
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
None
Expected Behavior
Should have given success message.
Actual Behavior
It thinks that the environment upload failed, but when I look in the Airflow UI it says that it succeeded. However, I am trying to access other resources (for instance, uploading DAG files) that depend on the composer resource. I cannot do this because tfstate never realizes that the environment was successful.
Steps to Reproduce
terraform apply
No
References
No
The text was updated successfully, but these errors were encountered: