rancher / terraform-provider-rancher2

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

[BUG] [vsphere] Error waiting for cluster to be updated: unexpected state 'waiting', wanted target 'active, provisioning, pending' #1353

Open dbsanfte opened 1 month ago

dbsanfte commented 1 month ago

Rancher Server Setup

Information about the Cluster

User Information

Provider Information

Describe the bug

Provisioning in-cluster resources with the Rancher provider occasionally fails with the below error while the Rancher 2 provider is waiting on the cluster to be ready (via the cluster_sync resource).

To Reproduce

Actual Result

Error: [ERROR] waiting for cluster (c-4tst9) to be updated: unexpected state 'waiting', wanted target 'active, provisioning, pending'. last error: %!s(<nil>)

  with rancher2_cluster.vsphere_backend,
  on backend.tf line 1, in resource "rancher2_cluster" "vsphere_backend":
   1: resource "rancher2_cluster" "vsphere_backend" {

Expected Result

The provider should wait for the cluster to be ready, no matter what state it is in.