You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installation option (Docker install/Helm Chart): k3s using the AWS quickstart guide
Information about the Cluster
Kubernetes version: v1.31.3+rke2r1
Cluster Type (Local/Downstream): downstream RKE2 Harvester cluster
User Information
What is the role of the user logged in? Admin
Provider Information
What is the version of the Rancher v2 Terraform Provider in use? 6.0.0
What is the version of Terraform in use? 1.10.4
Describe the bug
As a workaround for #1459, I'm trying to automate the Harvester cloud provider integration described in the documentation. Using terracurl_request resource to create service account, fetch kubeconfig and pass to the machine_selector_config field of a rancher2_machine_config_v2
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for rancher2_cluster_v2.rke2-development[0] to include new values learned so far during apply, provider "registry.terraform.io/rancher/rancher2" produced an
│ invalid new value for .rke_config[0].machine_selector_config[0].config: final value cty.StringVal("cloud-provider-config: |\n apiVersion: v1\n clusters:\n - cluster:\n
│ certificate-authority-data:
│ LS0tLS1CRUdJTiBDRVJUSUZRUUREQmx5...\n
│ server: https://10.10.10.10:6443\n name: default\n contexts:\n - context:\n cluster: default\n namespace: development\n user: default\n name: default\n
│ current-context: default\n kind: Config\n preferences: {}\n users:\n - name: default\n user:\n token:
│ eyJhbGciOiJSUzI1NiIsImtpZCI6InZuYTNKVTRjYW1CU4oIg...\ncloud-provider-name:
│ harvester\n") does not conform to planning placeholder cty.UnknownVal(cty.String).Refine().NotNull().StringPrefixFull("{").NewValue().
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
On second try Terraform produces correct plan and successfully creates resources
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
As a workaround for #1459, I'm trying to automate the Harvester cloud provider integration described in the documentation. Using terracurl_request resource to create service account, fetch kubeconfig and pass to the machine_selector_config field of a rancher2_machine_config_v2
Actual Result
First apply fails with the following output:
On second try Terraform produces correct plan and successfully creates resources
The text was updated successfully, but these errors were encountered: