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

Clickhouse: no changed detected #468

Open
sharovmerk opened this issue Sep 13, 2024 · 2 comments
Open

Clickhouse: no changed detected #468

sharovmerk opened this issue Sep 13, 2024 · 2 comments

Comments

@sharovmerk
Copy link

Reproduce:

  1. create clickhouse cluster with 3 zk host and 1 master host
  2. rename master host
  3. Retrieve an error:
│ Error: error while requesting API to update ClickHouse Cluster "XXX": server-request-id = 43f393b6-4038-4bf6-ac49-640aeb475f67 server-trace-id = b49d062b90ce29e4:251236e788fe3884:b49d062b90ce29e4:1 client-request-id = c72f668a-d180-4e46-acf6-bcfa123f9a43 client-trace-id = 006fd876-b724-42aa-a852-f3d3bee04b91 rpc error: code = FailedPrecondition desc = no changes detected
│ 

provider version 1.129.0

@sharovmerk
Copy link
Author

output from plan:

  # module.seed.module.clickhouse["c01"].yandex_mdb_clickhouse_cluster.this will be updated in-place
  ~ resource "yandex_mdb_clickhouse_cluster" "this" {
        id                       = "XXX"
        name                     = "XXX"
        # (16 unchanged attributes hidden)

      - shard {
          - name   = "shard1" -> null
          - weight = 100 -> null

          - resources {
              - disk_size          = 90 -> null
              - disk_type_id       = "network-ssd" -> null
              - resource_preset_id = "s2.small" -> null
            }
        }
      + shard {
          + name   = "master01"
          + weight = 100

          + resources {
              + disk_size          = 90
              + disk_type_id       = "network-ssd"
              + resource_preset_id = "s2.small"
            }
        }

      ~ zookeeper {
          ~ resources {
              ~ disk_size          = 10 -> 0
                # (2 unchanged attributes hidden)
            }
        }

        # (9 unchanged blocks hidden)
    }

@sharovmerk
Copy link
Author

Воспроизводится даже без переименования шардов:

  ~ resource "yandex_mdb_clickhouse_cluster" "this" {
        id                       = "XXX"
        name                     = "XXX"
        # (16 unchanged attributes hidden)

      ~ zookeeper {
          ~ resources {
              ~ disk_size          = 10 -> 0
                # (2 unchanged attributes hidden)
            }
        }

        # (10 unchanged blocks hidden)
    }

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