Skip to content

Provider produced inconsistent result after apply ske_cluster #1247

@Ein-nor

Description

@Ein-nor

Description

When applying changes to stackit_ske_cluster.ske, provider
"provider["registry.opentofu.org/stackitcloud/stackit"]" produced an
unexpected new value: .network: was null, but now
cty.ObjectVal(map[string]cty.Value{"id":cty.NullVal(cty.String)}).

Steps to reproduce

run tofu apply

resource "stackit_ske_cluster" "ske" {
  project_id             = var.project_id
  name                   = var.name
  kubernetes_version_min = var.kubernetes_version
  node_pools             = var.node_pool
  maintenance            = var.maintenance
  hibernations           = var.hibernations
  extensions = {
    acl = {
      allowed_cidrs = [
        "xxx.xxx.xxx.0/24",
        "zzz.zzz.zzz.zzz/32",
        "yyy.yyy.yyy.yyy/32"
      ]
      enabled = true
    }
  }
  lifecycle {
    ignore_changes = [
      extensions.acl.allowed_cidrs
    ]
  }
}

Actual behavior

stackit_ske_cluster.ske: Still creating... [8m40s elapsed]

│ Error: Provider produced inconsistent result after apply

│ When applying changes to stackit_ske_cluster.ske, provider
│ "provider["registry.opentofu.org/stackitcloud/stackit"]" produced an
│ unexpected new value: .network: was null, but now
│ cty.ObjectVal(map[string]cty.Value{"id":cty.NullVal(cty.String)}).

│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

Expected behavior

Creating SKE Cluster

Environment

  • OS:
  • Tofu version: v1.10.9
  • Version of the STACKIT Terraform provider: v0.82.0

Additional information

It's working with STACKIT Terraform provider v0.80.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions