Skip to content

Error in creating Volume from Backup #1117

@BackInBash

Description

@BackInBash

Description

Creating a Volume from a Backup fails.

Steps to reproduce

resource "stackit_volume" "volume" {
  project_id        = var.STACKIT_PROJECT_ID
  name              = "volume"
  availability_zone = var.zone
  performance_class = "storage_premium_perf6"
  size              = 4
  labels = {
    "src_backup_id" = "" // -> this label is getting introduced after creation this is why it fails
  }
  source = {
    type = "backup"
    id = "<backupId>"
  }
}
  1. Run terraform apply to create a volume from a backup

Actual behavior

stackit_volume.encrypted: Still creating... [20s elapsed]
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to stackit_volume.encrypted, provider
│ "provider[\"registry.terraform.io/stackitcloud/stackit\"]" produced an unexpected new value: .labels: was
│ null, but now
│ cty.MapVal(map[string]cty.Value{"src_backup_id":cty.StringVal("<backupId>")}).
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Environment

  • OS: macOS 15
  • Terraform version (see terraform --version): v1.5.7
  • Version of the STACKIT Terraform provider: v0.77.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