Open KostLinux opened 9 months ago
Same when upgrading RKE kubernetes version.
Terraform will perform the following actions:
# module.cluster.rancher2_cluster.cluster will be updated in-place
~ resource "rancher2_cluster" "cluster" {
id = "c-wp5kb"
name = "lab01"
# (17 unchanged attributes hidden)
~ rke_config {
~ kubernetes_version = "v1.26.11-rancher2-1" -> "v1.27.11-rancher1-1"
# (5 unchanged attributes hidden)
# (9 unchanged blocks hidden)
}
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
module.cluster.rancher2_cluster.cluster: Modifying... [id=c-wp5kb]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 10s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 20s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 30s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 1m0s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 1m10s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 1m20s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 1m30s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 1m40s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 1m50s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 2m0s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 2m10s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 2m20s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 2m30s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 2m40s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 2m50s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 3m0s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 3m10s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 3m20s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 3m30s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 3m40s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 3m50s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 4m0s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 4m10s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 4m20s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 4m30s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 4m40s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 4m50s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 5m0s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 5m10s elapsed]
module.cluster.rancher2_cluster.cluster: Still modifying... [id=c-wp5kb, 5m20s elapsed]
╷
Error: [0m Error: [ERROR] waiting for cluster (c-wp5kb) to be updated: unexpected state 'error', wanted target 'active, provisioning, pending'. last error: %!s(<nil>)
Rancher Server Setup
Information about the Cluster
I've created terraform module that creates cluster in rancher. When adding worker to node list, apply step gets stuck at rancher2 provider with following error
[ERROR] vertex "module.kubernetes_clusters.rancher2_cluster.rke" error: [ERROR] waiting for cluster (c-kxv62) to be updated: unexpected state 'unavailable', wanted target 'active, provisioning, pending'. last error: %!s(<nil>)
Googling error didn't give any answers.
To Reproduce
Create rancher2 cluster via provider ->
Actual Result
It gives unknown error that i can't even debug normally...
Expected Result
It will register another worker to cluster
Screenshots
Additional context
Module works in these steps: