-
Notifications
You must be signed in to change notification settings - Fork 94
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
[Bug] elasticstack_elasticsearch_data_stream_lifecycle data_retention serialization issue on apply #926
Comments
@howtwizer I'm struggling to reproduce this. Are you able to either:
Thanks for the report, the error suggests you're getting something different back from the API to what Elasticsearch specifies. The provider should definitely handle this better, but we need to understand the cause first. |
I have the same bug
Here's my error log
So I have investigate code and I found this
Object return by call http:
Go struct
|
Folks, on which elastic stack version are you hitting the bug? |
Describe the bug
Truing to apply
Failing with error
To Reproduce
Steps to reproduce the behavior:
2024-11-22T13:02:01.692+0100 [ERROR] AttachSchemaTransformer: No provider config schema available for provider["terraform.io/builtin/terraform"]
2024-11-22T13:02:01.698+0100 [INFO] provider: configuring client automatic mTLS
2024-11-22T13:02:01.727+0100 [INFO] provider.terraform-provider-elasticstack_v0.11.11: configuring server automatic mTLS: timestamp="2024-11-22T13:02:01.726+0100"
elasticstack_elasticsearch_data_stream_lifecycle.proxy_log_data_stream_lifecycle_multiple: Creating...
2024-11-22T13:02:01.747+0100 [INFO] Starting apply for elasticstack_elasticsearch_data_stream_lifecycle.proxy_log_data_stream_lifecycle_multiple
2024-11-22T13:02:03.356+0100 [ERROR] provider.terraform-provider-elasticstack_v0.11.11: Response contains error diagnostic: @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="json: cannot unmarshal object into Go value of type []models.DataStreamLifecycle" tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov6/internal/diag/diagnostics.go:58 diagnostic_detail="" tf_proto_version=6.6 tf_provider_addr=registry.terraform.io/elastic/elasticstack tf_req_id=e79a338f-0d81-e149-7716-e91b036fdd73 tf_resource_type=elasticstack_elasticsearch_data_stream_lifecycle timestamp="2024-11-22T13:02:03.356+0100"
2024-11-22T13:02:03.358+0100 [ERROR] vertex "elasticstack_elasticsearch_data_stream_lifecycle.proxy_log_data_stream_lifecycle_multiple" error: json: cannot unmarshal object into Go value of type []models.DataStreamLifecycle
╷
│ Error: json: cannot unmarshal object into Go value of type []models.DataStreamLifecycle
│
│ with elasticstack_elasticsearch_data_stream_lifecycle.proxy_log_data_stream_lifecycle_multiple,
│ on data-stream-lifecycles.tf line 1, in resource "elasticstack_elasticsearch_data_stream_lifecycle" "proxy_log_data_stream_lifecycle_multiple":
│ 1: resource "elasticstack_elasticsearch_data_stream_lifecycle" "proxy_log_data_stream_lifecycle_multiple" {
│
╵
The text was updated successfully, but these errors were encountered: