-
Notifications
You must be signed in to change notification settings - Fork 740
Description
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 v1.14.5
on linux_amd64
- provider registry.terraform.io/hashicorp/azurerm v4.46.0
- provider registry.terraform.io/oracle/oci v7.13.0
Affected Resource(s)
oci_database_cloud_vm_cluster
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file.
# Please remove any sensitive information from configuration files before sharing them. Debug Output
Panic Output
Expected Behavior
I have an Infra with 4 dbServers. A vmcluster is created on this Infra with parameter db_servers referencing dbServer3 and dbServer4 only. The cluster should be creating on only these two dbServers and should then persist on only these two.
Actual Behavior
Initial creation of the vmcluster succeeds and the cluster is created on only dbServers3 and dbServer4. With no further configuration changes I run a plan again and the module want to modify the cluster db_servers. To see the effect I then run an apply and the cluster is expanded to be on all four available dbServers despite the parameter db_servers being unchanged in the config file.
Terraform will perform the following actions:
module.vmcluster_vmc_prd_retailX11.oci_database_cloud_vm_cluster.cluster will be updated in-place
~ resource "oci_database_cloud_vm_cluster" "cluster" {
~ db_servers = [
- "ocid1.dbserver.oc1.eu-frankfurt-1.---4pauuwwceimrcaqmfgcapkaxa",
"ocid1.dbserver.oc1.eu-frankfurt-1.---sqnm7jgk72mdx4acx6inbbmza",
+ "ocid1.dbserver.oc1.eu-frankfurt-1.---4pauuwwceimrcaqmfgcapkaxa",
]
id = "ocid1.cloudvmcluster.oc1.eu-frankfurt-1.---zpwvpyqtmbw4nvi62q2uhxqza"
# (53 unchanged attributes hidden)
# (14 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Steps to Reproduce
create 2 node vmcluster on 4 node Infra then run plan. Change indicated where no parameter has been modified since the create.
terraform apply
Important Factoids
I can reproduce this in our two regions AMS and FRA