yandex-cloud / terraform-provider-yandex

Terraform Yandex provider
https://www.terraform.io/docs/providers/yandex/
Mozilla Public License 2.0
211 stars 116 forks source link

yandex_mdb_redis_cluster host subnets change not working #458

Open ezhische opened 3 months ago

ezhische commented 3 months ago

Trying to change subnets for redis host. terraform plan show:

Terraform will perform the following actions:

yandex_mdb_redis_cluster.redis will be updated in-place

~ resource "yandex_mdb_redis_cluster" "redis" { id = "c9qln1edmn48p3psa7la" name = "crm-lt-redis"

(14 unchanged attributes hidden)

  ~ host {
      ~ subnet_id        = "e9bl3mtomfkchvvlam21" -> "e9bcrrfrtum07h5s2b0n"
        # (5 unchanged attributes hidden)
    }
  ~ host {
      ~ subnet_id        = "e2l6jf5vinoq3qbgnoub" -> "e2ldem29n22nhi863hbe"
        # (5 unchanged attributes hidden)
    }
  ~ host {
      ~ subnet_id        = "fl8pbukuau8eslhkkf3s" -> "fl8aek9hlk198v5vbdbd"
        # (5 unchanged attributes hidden)
    }
  ~ host {
      ~ subnet_id        = "e9bl3mtomfkchvvlam21" -> "e9bcrrfrtum07h5s2b0n"
        # (5 unchanged attributes hidden)
    }
  ~ host {
      ~ subnet_id        = "e2l6jf5vinoq3qbgnoub" -> "e2ldem29n22nhi863hbe"
        # (5 unchanged attributes hidden)
    }
  ~ host {
      ~ subnet_id        = "fl8pbukuau8eslhkkf3s" -> "fl8aek9hlk198v5vbdbd"
        # (5 unchanged attributes hidden)
    }

    # (4 unchanged blocks hidden)
}

Plan: 0 to add, 1 to change, 0 to destroy.

but apply ends with error after 10minutes of modifying

│ Error: Error while adding host to Redis Cluster "c9qln1edmn48p3psa7la": operation (id=rd4ed6ah0a7tsrk6p69m) failed: rpc error: code = Unknown desc = Unknown error │ │ with yandex_mdb_redis_cluster.redis, │ on main.tf line 126, in resource "yandex_mdb_redis_cluster" "redis": │ 126: resource "yandex_mdb_redis_cluster" "redis" { │ ╵

Nothing changed at the end.

yandex-cloud/yandex v0.126.0 Terraform v1.9.3

Apelsin234 commented 1 month ago

Hello! Thank you for reporting the issue. It's not currently possible to change the subnet_id for host. However, the plan is indeed displayed incorrectly, and we will try to fix this soon.