terraform-ibm-modules / stack-retrieval-augmented-generation

Apache License 2.0
1 stars 11 forks source link

test: Destroy path #35

Closed vburckhardt closed 4 months ago

vburckhardt commented 4 months ago

Description

Undeploy the stack - verify that ALL resources are deleted (check in resource controller)

Context: https://github.com/terraform-ibm-modules/stack-retrieval-augmented-generation/issues/17

New or affected modules


By submitting this issue, you agree to follow our Code of Conduct

iamar7 commented 4 months ago

There any two approaches to undeploy the stack and delete all the resources:-

iamar7 commented 4 months ago

For the first case, I deleted the project and it started deleting all the DA's at once and since undeploying doesn't happen in the correct order it failed to delete the stack and the associated resources.

image

image

iamar7 commented 4 months ago

The second case regarding un-deploying the stack one by one(from bottom to top) followed by Project deletion via UI worked fine(once).

However, when destroying the stack many have seen that sampleGenerative_AI_Sample_App_CI_Project code engine left behind in the resource group. This seems to be created by one of the DA's and not stored in the terraform state. This causes the resource group deletion to fail and this should be documented in the readme that the code engine should be manually deleted before destroying the stack/project.

Furthermore, container registry namespace are not deleted either so should be documented.