-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not import a cluster with terraform-provider-rke V1.4.3. #432
Comments
leftyb
pushed a commit
to leftyb/terraform-provider-rke
that referenced
this issue
Nov 28, 2023
enable_cri_dockerd = true fixes rancher#432
Waiting for RC |
the fix can be validated at https://github.com/rancher/terraform-provider-rke/releases/tag/v1.4.5-rc1 |
Ticket # 432 - Test Results - ✅Reproduced with RKE
ssh_key_path: <path_to_ssh_key_here>
enable_cri_dockerd: true
kubernetes_version: v1.26.6-rancher1-1
nodes:
- address: <REDACTED>
internal_address: <REDACTED>
user: ubuntu
role: [etcd, controlplane, worker]
- address: <REDACTED>
internal_address: <REDACTED>
user: ubuntu
role: [etcd, controlplane, worker]
- address: <REDACTED>
internal_address: <REDACTED>
user: ubuntu
role: [etcd, controlplane, worker]
terraform {
required_providers {
rke = {
source = "rancher/rke"
version = "1.4.3"
}
}
}
provider "rke" {}
resource "rke_cluster" "rke_cluster" {}
Verified with RKE
ssh_key_path: <path_to_ssh_key_here>
enable_cri_dockerd: true
kubernetes_version: v1.26.6-rancher1-1
nodes:
- address: <REDACTED>
internal_address: <REDACTED>
user: ubuntu
role: [etcd, controlplane, worker]
- address: <REDACTED>
internal_address: <REDACTED>
user: ubuntu
role: [etcd, controlplane, worker]
- address: <REDACTED>
internal_address: <REDACTED>
user: ubuntu
role: [etcd, controlplane, worker]
terraform {
required_providers {
rke = {
source = "terraform.local/local/rke"
version = "1.4.5-rc1"
}
}
}
provider "rke" {}
resource "rke_cluster" "rke_cluster" {}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terraform: v1.5.0
RKE Terraform Provider: v1.4.3
RKE Cluster: v1.26.9-rancher1-1
RKE: 1.4.7
When importing a cluster using latest 1.4.3 version of the provider getting following error :
Error: │ ============= RKE outputs ============== │ time="2023-11-23T15:27:29+02:00" level=info msg="Creating RKE cluster..." │ │ kubernetes version v1.26.9-rancher1-1 requires enable_cri_dockerd to be set to true
Although is set:
enable_cri_dockerd: true
How to reproduce:
Use a
cluster.yaml
file and acluster.rkestate
file for a running cluster created from RKE CLI.At the
cluster.yaml
set theenable_cri_dockerd: true
.Import cluster using
terraform-provider-rke
:terraform import rke_cluster.qa cluster.yml:cluster.rkestate
.Import will fail, even if
enable_cri_dockerd
is properly set totrue
The text was updated successfully, but these errors were encountered: