[BUG] rancher2_cluster_v2's rke_config[0].etcd[0].s3_config[0].endpoint doesn't seem to be flexible to a value change during the applied Terraform #1413
What is the version of the Rancher v2 Terraform Provider in use? v5.0.0
What is the version of Terraform in use? v1.9.3
Describe the bug
Let's say you are setting up an S3 Compatible endpoint via Terraform somewhere/of-some-kind/at-some-accessilble-place, in this instance it's using Harvester terraform provider to set up a VM running MinIO that was configured w/ Ansible (Ansible Terraform Provider ) + some cloud-init. It just seems to be complaining that it didn't know the ipv4 address of the rke_config[0].etcd[0].s3_config[0].endpoint for the rancher2_cluster_v2 (even when introducing depends_on props in the resources) with:
╷
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for rancher2_cluster_v2.rke2-terraform to include new values learned so far during apply, provider "registry.terraform.io/rancher/rancher2" produced an invalid new value for
│ .rke_config[0].etcd[0].s3_config[0].endpoint: was cty.StringVal(""), but now cty.StringVal("https://192.168.104.251:9000").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Workaround
just re-applying the terraform apply works to overcome the bug
This relys heavily on having a single-node Harvester v1.3.2, Rancher v2.9.1 (applied w/ vcluster addon manifest linked in rancher server setup above)
Actual Result
it just shows off that error, the implementing the workaround overcomes that error
Expected Result
maybe not show an error, maybe allow for the empty string at first but knowing that when the things it may depends_on finish maybe it will have a value that changes? I guess this all depends... if someone's Terraform is cultivating an S3 Compatible resource on the fly or not... :shrug: :thinking: ... but I'm not sure, maybe this is bad practice :sweat_smile: - super willing to close this out if what is taking place is totally expected
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
Let's say you are setting up an S3 Compatible endpoint via Terraform somewhere/of-some-kind/at-some-accessilble-place, in this instance it's using Harvester terraform provider to set up a VM running MinIO that was configured w/ Ansible (Ansible Terraform Provider ) + some cloud-init. It just seems to be complaining that it didn't know the
ipv4
address of therke_config[0].etcd[0].s3_config[0].endpoint
for therancher2_cluster_v2
(even when introducingdepends_on
props in the resources) with:Workaround
terraform apply
works to overcome the bugTo Reproduce
Please read:
This relys heavily on having a single-node Harvester v1.3.2, Rancher v2.9.1 (applied w/ vcluster addon manifest linked in rancher server setup above)
Actual Result
Expected Result
Screenshots
Additional context