rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
263 stars 228 forks source link

[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

Open irishgordo opened 2 months ago

irishgordo commented 2 months ago

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 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

To 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