Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Destroy database with dependent services should fail on 1st error #15

Open
mbfrahry opened this issue Mar 27, 2018 · 0 comments
Open

Destroy database with dependent services should fail on 1st error #15

mbfrahry opened this issue Mar 27, 2018 · 0 comments
Labels
dbcs Database Cloud Service

Comments

@mbfrahry
Copy link
Contributor

If the database destroy action encounters the error This Database Cloud Service is being used by the following Cloud Services and cannot be deleted the destroy should halt rather the continuing to retry the delete operation.

2018-03-12T20:43:06.843Z [DEBUG] plugin.terraform-provider-oraclepaas: [DEBUG] Deleting DatabaseServiceInstance: my-terraformed-database-test4
2018-03-12T20:43:06.844Z [DEBUG] plugin.terraform-provider-oraclepaas: go-oracle-terraform: HTTP DELETE Req (/paas/service/dbcs/api/v1.1/instances/ptstest/my-terraformed-database-test4)
2018-03-12T20:43:07.644Z [DEBUG] plugin.terraform-provider-oraclepaas: go-oracle-terraform: Encountered HTTP (400) Error: This Database Cloud Service is being used by the following Cloud Services and cannot be deleted: [my-terraformed-java-service-test4]
2018-03-12T20:43:07.644Z [DEBUG] plugin.terraform-provider-oraclepaas: go-oracle-terraform: 1/1 retries left
2018-03-12T20:43:07.644Z [DEBUG] plugin.terraform-provider-oraclepaas: Error during delete, waiting 30s: Error on delete (400): This Database Cloud Service is being used by the following Cloud Services and cannot be deleted: [my-terraformed-java-service-test4]
oraclepaas_database_service_instance.database: Still destroying... (ID: my-terraformed-database-test4, 10s elapsed)
oraclepaas_database_service_instance.database: Still destroying... (ID: my-terraformed-database-test4, 20s elapsed)
oraclepaas_database_service_instance.database: Still destroying... (ID: my-terraformed-database-test4, 30s elapsed)
2018-03-12T20:43:37.646Z [DEBUG] plugin.terraform-provider-oraclepaas: go-oracle-terraform: HTTP DELETE Req (/paas/service/dbcs/api/v1.1/instances/ptstest/my-terraformed-database-test4)
2018-03-12T20:43:38.433Z [DEBUG] plugin.terraform-provider-oraclepaas: go-oracle-terraform: Encountered HTTP (400) Error: This Database Cloud Service is being used by the following Cloud Services and cannot be deleted: [my-terraformed-java-service-test4]
2018-03-12T20:43:38.433Z [DEBUG] plugin.terraform-provider-oraclepaas: go-oracle-terraform: 1/1 retries left
2018-03-12T20:43:38.433Z [DEBUG] plugin.terraform-provider-oraclepaas: Error during delete, waiting 30s: Error on delete (400): This Database Cloud Service is being used by the following Cloud Services and cannot be deleted: [my-terraformed-java-service-test4]
@scross01 scross01 added the dbcs Database Cloud Service label Jun 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dbcs Database Cloud Service
Projects
None yet
Development

No branches or pull requests

2 participants