Closed jamiezieziula closed 2 weeks ago
Hi @jamiezieziula Thanks for the report! We will take a look and keep you updated 👌🏻
hello @jamiezieziula and thanks for your report. I tried replicating this by creating a new development tier service and I could not. I assume the service you're witnessing this error on existed before 1.2.4 and the issue started only after the upgrade.
I also tried creating a dev service using version 1.2.3 and then upgrading to 1.2.4, still with no error.
Would it be possible to share the .tfstate file's content? we only need the num_replicas
field of the service
resource. Example:
"resources": [
{
"mode": "managed",
"type": "clickhouse_service",
"name": "service",
"provider": "provider[\"registry.terraform.io/clickhouse/clickhouse\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
...
"num_replicas": null,
...
I'm also getting this error
I'm also getting this error
same question for you then, can you please provide the details I requested above?
@whites11 num_replicas
is null
because it complains that you cannot provide it for development.
With num_replicas
Without num_replicas
@whites11 - state file below:
{
"mode": "managed",
"type": "clickhouse_service",
"name": "events",
"provider": "provider[\"registry.terraform.io/clickhouse/clickhouse\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
...
"name": "events-dev",
"num_replicas": null,
"tier": "development"
},
As @mjroeleveld mentioned, it fails whether num_replicas
is specified or not. We upgraded from provider version 0.0.4
to the latest 1.2.4
. FWIW, the production
services we mange via terraform (unsurprisingly) apply with no issue.
I was able to replicate this.
development
tier. Leave out the num_replicas
field.idle_scaling
bool).Hello, we pushed a fix to address this issue: https://github.com/ClickHouse/terraform-provider-clickhouse/releases/tag/v1.2.5 Please try this out and re-open if you have any issues. Thank you!
After upgrading to provider version
1.2.4
, trying to applyterraform
fails with the following error:As documented in the provider,
num_replicas
is only support onproduction
instances. However, even when omitting thenum_replicas
configuration altogether, or passingnull
as the value, the provider still attempts to reconcile it.