Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yandex_mdb_redis_cluster host subnets change not working #458

Open
ezhische opened this issue Jul 31, 2024 · 1 comment
Open

yandex_mdb_redis_cluster host subnets change not working #458

ezhische opened this issue Jul 31, 2024 · 1 comment

Comments

@ezhische
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants