terraform-provider-oci icon indicating copy to clipboard operation
terraform-provider-oci copied to clipboard

Data Guard cannot be enabled during database creation

Open woshileo opened this issue 2 years ago • 4 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Terraform v0.14.7

  • provider registry.terraform.io/hashicorp/oci v4.36.0
  • provider registry.terraform.io/hashicorp/random v3.1.0
  • provider registry.terraform.io/hashicorp/template v2.2.0
  • provider registry.terraform.io/hashicorp/tls v3.1.0

Affected Resource(s)

oci_database_autonomous_database

Terraform Configuration Files

resource "oci_database_autonomous_database" "database" {
  admin_password                = "RandomPasswordHere13@"
  db_name                             = "test"
  is_data_guard_enabled      = true
}

Expected Behavior

Data Guard should be enabled when the database is being created.

Actual Behavior

Error: 400-InvalidParameter
Provider version: 4.36.0, released on 2021-07-21.
Service: Database Autonomous
Error Message: Operation failed. Cannot enable Autonomous Data Guard during database creation.

Steps to Reproduce

Trying to plan or apply a Terraform templates that provision Autonomous Database with is_data_guard_enabled set to true.

woshileo avatar Aug 03 '21 22:08 woshileo

any update on the issue ?facing same issue.. need to run 2 times to enable DG

nkm269 avatar Jul 15 '22 15:07 nkm269

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

tf-oci-pub avatar Apr 24 '23 13:04 tf-oci-pub

Fixed with the latest version of terraform provider. Please verify.

navg-orcl avatar Sep 19 '23 22:09 navg-orcl