GoogleCloudPlatform / cloud-ops-sandbox

Cloud Operations Sandbox is an open source collection of tools that helps practitioners to learn O11y and R9y practices from Google and apply them using Cloud Operations suite of tools.
Apache License 2.0
406 stars 148 forks source link

Unable to create `ratingservice` due to Terraform error #926

Closed davidstanke closed 2 years ago

davidstanke commented 2 years ago

I got a fatal error trying to run the installer. Here's the tail of the log:

module.ratingservice.google_sql_database_instance.rating_service: Still creating... [13m0s elapsed]
module.ratingservice.google_sql_database_instance.rating_service: Creation complete after 13m5s [id=ratingservice-sql-instance-wj8j]
module.ratingservice.google_sql_user.default: Creating...
module.ratingservice.google_sql_user.default: Still creating... [10s elapsed]
module.ratingservice.google_sql_user.default: Still creating... [20s elapsed]
module.ratingservice.google_sql_user.default: Creation complete after 29s [id=postgres//ratingservice-sql-instance-wj8j]
module.ratingservice.google_sql_database.rating_service: Creating...
module.ratingservice.google_sql_database.rating_service: Still creating... [10s elapsed]
module.ratingservice.google_sql_database.rating_service: Still creating... [20s elapsed]
module.ratingservice.google_sql_database.rating_service: Provisioning with 'local-exec'...
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service: Still creating... [30s elapsed]
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service (local-exec): (output suppressed due to sensitive value in config)
module.ratingservice.google_sql_database.rating_service: Creation complete after 31s [id=projects/cloud-ops-sandbox-3512916901/instances/ratingservice-sql-instance-wj8j/databases/rating-db]
╷
│ Error: Error waiting to create StandardAppVersion: Error waiting for Creating StandardAppVersion: Error code 9, message: Cloud build d8100bd3-1228-43be-b6a8-9a23ba20b157 status: FAILURE
│ An unexpected error occurred. Refer to build logs: https://console.cloud.google.com/cloud-build/builds;region=us-east1/d8100bd3-1228-43be-b6a8-9a23ba20b157?project=110899351329
│ Full build logs: https://console.cloud.google.com/cloud-build/builds;region=us-east1/d8100bd3-1228-43be-b6a8-9a23ba20b157?project=110899351329
│
│   with module.ratingservice.google_app_engine_standard_app_version.default[0],
│   on ratingservice/05_appengine.tf line 34, in resource "google_app_engine_standard_app_version" "default":
│   34: resource "google_app_engine_standard_app_version" "default" {
│
daniel-sanche commented 2 years ago

I can't see the Cloud Build logs, but that looks similar to what I was running into when I made PR https://github.com/GoogleCloudPlatform/cloud-ops-sandbox/pull/923. I think sometimes the ratingservice was deploying before the APIs/buckets were ready, so I added some extra depends_on statements. This should hopefully be fixed when that PR is merged

minherz commented 2 years ago

@daniel-sanche can you please update the issue once the changes will be available, so @davidstanke can verify it on their side?

daniel-sanche commented 2 years ago

I believe this should be fixed now. I'm certainly not seeing it in the sandboxes I've been building this week. Feel free to re-open if you still see it though