oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
760 stars 677 forks source link

oci_database_data_guard_association is missing the domain attribute #2000

Open dhoogfr opened 11 months ago

dhoogfr commented 11 months ago

Community Note

Terraform Version and Provider Version

OCI plugin version 5.21.0

Affected Resource(s)

oci_database_data_guard_association

Expected Behavior

When creating a DBCS resource in a non DNS enabled subnet, the domain attribute has to be used to provide a domain name for the DBCS node. While this attributes exists in the oci_database_db_system resource, it does not exists in the oci_database_data_guard_association resource and when creating a standby database in a non DNS enabled subnet the creation fails with the error that the domain cannot be null (so it's also not inherited from the primary DBCS system).

The underlying API does has the domain attribute in the CreateDataGuardAssociationToExistingDbSystemDetails configuration item And also the Web Console exposes this attribute field

So we expect the TerraForm resource to also expose the domain attribute to avoid deployments to fail We also created SR 3-35008132171 for this.

Actual Behavior

Deployment fails because the domain name is null

Steps to Reproduce

  1. create a dataguards association into a subnet without DNS enabled

Important Factoids

References

tf-oci-pub commented 11 months ago

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

Nagamani732 commented 9 months ago

Hi @dhoogfr Thank you for reaching out. We are tracking this bug internally.