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

redis: no changes detected when changing NOEVICTION -> MAXMEMORY_POLICY_UNSPECIFIED #476

Open
sharovmerk opened this issue Oct 24, 2024 · 0 comments

Comments

@sharovmerk
Copy link

We tried to change "NOEVICTION" -> "MAXMEMORY_POLICY_UNSPECIFIED".

Terraform plan:

Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:
  # module.seed.module.redis_cluster["r01"].yandex_mdb_redis_cluster.this has changed
  ~ resource "yandex_mdb_redis_cluster" "this" {
      ~ health              = "HEALTH_UNKNOWN" -> "ALIVE"
        id                  = "XXX"
        name                = "YYY"
        # (13 unchanged attributes hidden)
        # (6 unchanged blocks hidden)
    }
Unless you have

...

  ~ resource "yandex_mdb_redis_cluster" "this" {
        id                  = "XXX"
        name                = "Y"YY
        # (14 unchanged attributes hidden)
      ~ config {
          ~ maxmemory_policy                  = "NOEVICTION" -> "MAXMEMORY_POLICY_UNSPECIFIED"
            # (10 unchanged attributes hidden)
        }
        # (5 unchanged blocks hidden)
    }

Terraform apply:

│ Error: Error while requesting API to update Redis Cluster "XXX": server-request-id = AAA server-trace-id = BBB client-request-id = CCC client-trace-id = DDD rpc error: code = FailedPrecondition desc = no changes detected
│ 
│   with module.seed.module.redis_cluster["r01"].yandex_mdb_redis_cluster.this,
│   on .terraform/modules/seed.redis_cluster/main.tf line 1, in resource "yandex_mdb_redis_cluster" "this":
│    1: resource "yandex_mdb_redis_cluster" "this" {
│ 
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

2 participants