rancher / terraform-provider-rancher2

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

[BUG] Adding one more worker node gives waiting for cluster to be updated error #1250

Open KostLinux opened 9 months ago

KostLinux commented 9 months ago

Rancher Server Setup

Information about the Cluster

gorantornqvist-sr commented 3 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>)