Skip to content

[Bug]: Can't create a Linode instance using linode_interface resource using example from documentation #2200

@leonardobdes-akamai

Description

@leonardobdes-akamai

Terraform Version

Terraform v1.14.3 on linux_amd64

Linode Provider Version

registry.terraform.io/linode/linode v3.7.0

Effected Terraform Resources

linode_interface

Terraform Config Files

https://registry.terraform.io/providers/linode/linode/latest/docs/resources/interface#complete-example-with-linode

Debug Output

With TF_LOG=debug TF_LOG_PROVIDER=debug terraform apply

linode_instance_disk.boot: Still creating... [00m20s elapsed]
2025-12-30T11:56:17.484Z [DEBUG] provider.terraform-provider-linode_v3.7.0: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_attribute_path=image tf_mux_provider="*proto6server.Server" tf_provider_addr=registry.terraform.io/linode/linode tf_req_id=53c4957f-79f5-9dbb-1982-3a6b791c9ca9 tf_resource_type=linode_instance_disk @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 tf_rpc=ApplyResourceChange timestamp=2025-12-30T11:56:17.484Z
2025-12-30T11:56:17.484Z [DEBUG] provider.terraform-provider-linode_v3.7.0: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_attribute_path=linode_id tf_mux_provider="*proto6server.Server" tf_provider_addr=registry.terraform.io/linode/linode @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 tf_req_id=53c4957f-79f5-9dbb-1982-3a6b791c9ca9 tf_resource_type=linode_instance_disk tf_rpc=ApplyResourceChange timestamp=2025-12-30T11:56:17.484Z
2025-12-30T11:56:17.485Z [DEBUG] provider.terraform-provider-linode_v3.7.0: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/linode/linode tf_req_id=53c4957f-79f5-9dbb-1982-3a6b791c9ca9 tf_resource_type=linode_instance_disk @module=sdk.framework tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 tf_attribute_path=label tf_mux_provider="*proto6server.Server" timestamp=2025-12-30T11:56:17.484Z
2025-12-30T11:56:17.485Z [DEBUG] provider.terraform-provider-linode_v3.7.0: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/linode/linode @module=sdk.framework tf_attribute_path=size tf_mux_provider="*proto6server.Server" tf_req_id=53c4957f-79f5-9dbb-1982-3a6b791c9ca9 tf_resource_type=linode_instance_disk tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 timestamp=2025-12-30T11:56:17.484Z
2025-12-30T11:56:17.485Z [DEBUG] provider.terraform-provider-linode_v3.7.0: Value switched to prior value due to semantic equality logic: @caller=github.com/hashicorp/[email protected]/internal/fwschemadata/value_semantic_equality.go:91 @module=sdk.framework tf_attribute_path=root_pass tf_provider_addr=registry.terraform.io/linode/linode tf_resource_type=linode_instance_disk tf_mux_provider="*proto6server.Server" tf_req_id=53c4957f-79f5-9dbb-1982-3a6b791c9ca9 tf_rpc=ApplyResourceChange timestamp=2025-12-30T11:56:17.484Z
linode_instance_disk.boot: Creation complete after 29s [id=169992027]

│ Error: Failed to Create a Network Interface for Linode Instance 89331738

│ with linode_interface.public,
│ on main.tf line 55, in resource "linode_interface" "public":
│ 55: resource "linode_interface" "public" {

│ [404] Not found

2025-12-30T11:56:17.509Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-12-30T11:56:17.510Z [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/linode/linode/3.7.0/linux_amd64/terraform-provider-linode_v3.7.0 id=556725
2025-12-30T11:56:17.510Z [DEBUG] provider: plugin exited

with TF_LINODE=DEBUG LINODE_DEBUG=1 terraform apply

linode_instance_disk.boot: Creation complete after 30s [id=169992576]

│ Error: Failed to Create a Network Interface for Linode Instance 89332070

│ with linode_interface.public,
│ on main.tf line 55, in resource "linode_interface" "public":
│ 55: resource "linode_interface" "public" {

│ [404] Not found

Panic Output

No response

Expected Behavior

Expected behaviour is for a Linode instance to be created with the interface specified in the linode_interface resource.

I was testing this with a VPC interface, however, even running the example that creates a public interface fails.

https://registry.terraform.io/providers/linode/linode/latest/docs/resources/interface
"This resource is specifically for Linode interfaces. If you are interested in deploying a Linode instance with a legacy config interface, please refer to the linode_instance_config resource documentation for details."
This indicates that this is the new way to setup interfaces, however, as this did not work I had to use the legacy way that works fine.

Actual Behavior

404 error and only these resources are created:
linode_instance.my-instance
linode_instance_disk.boot

Steps to Reproduce

Just run the documentation example:
https://registry.terraform.io/providers/linode/linode/latest/docs/resources/interface#complete-example-with-linode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissues that report a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions