ionos-cloud / terraform-provider-ionoscloud

The IonosCloud Terraform provider gives the ability to deploy and configure resources using the IonosCloud APIs.
Mozilla Public License 2.0
33 stars 21 forks source link

Provider "registry.opentofu.org/ionos-cloud/ionoscloud" produced an invalid plan #591

Open salyh opened 1 week ago

salyh commented 1 week ago

Description

I see a lot "produced an invalid plan" messages in the logs (on WARN log level):

2024-06-27T16:52:21.404Z [WARN]  Provider "registry.opentofu.org/ionos-cloud/ionoscloud" produced an invalid plan for ionoscloud_networkloadbalancer_forwardingrule.tfstack, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .health_check: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2024-06-27T16:52:21.404Z [DEBUG] provider.terraform-provider-ionoscloud_v6.4.18: setting computed for "targets" from ComputedKeys: timestamp=2024-06-27T16:52:21.404Z
2024-06-27T16:52:21.405Z [WARN]  Provider "registry.opentofu.org/ionos-cloud/ionoscloud" produced an invalid plan for ionoscloud_networkloadbalancer_forwardingrule.tfstack_postgres, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .health_check: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2024-06-27T16:57:25.316Z [WARN]  Provider "registry.opentofu.org/ionos-cloud/ionoscloud" produced an invalid plan for ionoscloud_k8s_node_pool.tfstack_z2, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .allow_replace: planned value cty.False for a non-computed attribute
2024-06-27T16:52:21.395Z [WARN]  Provider "registry.opentofu.org/ionos-cloud/ionoscloud" produced an invalid plan for ionoscloud_networkloadbalancer.tfstack, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .ips: planned value cty.UnknownVal(cty.List(cty.String)) does not match config value cty.ListVal([]cty.Value{cty.UnknownVal(cty.String)})

tofu validate reports no issues, see tf attached

Expected behavior

So such warnings

Environment

Terraform version:

OpenTofu v1.7.2

Provider version:

6.4.18

OS:

Configuration Files

tf.zip

cristiGuranIonos commented 5 days ago

Data consistency errors due to older tf sdk. If you don't see any downstream errors, don't mind these. Will be fixed when we migrate to the newer platform.