terraform-ibm-modules / terraform-ibm-watsonx-saas-da

A deployable architecture solution to deploy IBM Watsonx SaaS resources.
Apache License 2.0
2 stars 1 forks source link

SaaS DA is intermittently failing on deploy #112

Closed akocbek closed 1 day ago

akocbek commented 1 week ago

The RAG stack failed catalog validation on the Watson Saas deploy. After rerun the validation passed. It is an intermittent failure

error

Terraform planned the following actions, but then encountered a problem:

  # module.configure_user.null_resource.configure_user must be replaced
-/+ resource "null_resource" "configure_user" {
      ~ id       = "2144875551820406457" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "always_run" = "2024-07-04T17:57:35Z" -> (known after apply)
        }
    }

  # module.configure_user.null_resource.restrict_access must be replaced
-/+ resource "null_resource" "restrict_access" {
      ~ id       = "7300154366233028698" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "always_run" = "2024-07-04T17:57:34Z" -> (known after apply)
        }
    }

Plan: 2 to add, 0 to change, 2 to destroy.

Error: failed to find an object with the 'metadata/guid' key = 'f2d50750-891d-4c71-937e-6bad51cb55b0' at //api.dataplatform.cloud.ibm.com/v2/projects

  with module.configure_project[0].data.restapi_object.get_project,
  on configure_project/main.tf line 56, in data "restapi_object" "get_project":
  56: data "restapi_object" "get_project" {

 [1mTerraform PLAN error: Terraform PLAN errorexit status 1
andreainnocenti commented 1 week ago

are you using the latest version?

daniel-butler-irl commented 1 week ago

Version 1.3.4 image

andreainnocenti commented 1 week ago

thanks! I'll try to reproduce this error

andreainnocenti commented 1 day ago

I was not able to reproduce it, the only thing I can think it's a race condition in the WX DB. I added a sleep between the project creation and the retrieval of the project info. https://github.com/terraform-ibm-modules/terraform-ibm-watsonx-saas-da/pull/117