Skip to content

Receive randomly 401 (or 404) on terraform apply or terraform destroy #1463

@dome-meg

Description

@dome-meg

Description

How should I describe a randomly appearing problem with stackit terraform? 😅

As the title mentioned I receive sometimes 401 (once even a 404) when apply/destroy.

I got the error related to the stackit_server_update_enable and stackit_server_backup_enable.

example:

$ terraform destroy


stackit_key_pair.deploy: Refreshing state... [id=luma-production-deploy-key-pair]
stackit_security_group.main: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,eu01,ea5d014c-46cf-46ff-a621-c4582c7eac9e]
stackit_network.main: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,eu01,15f84590-cbd0-460c-a8d4-1b74da48a19a]
stackit_security_group_rule.allow_ingress_all: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,eu01,ea5d014c-46cf-46ff-a621-c4582c7eac9e,14a6ce93-63d7-4f43-8b63-3a848e2bcff2]
stackit_network_interface.main: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,eu01,15f84590-cbd0-460c-a8d4-1b74da48a19a,b71feb0c-9db4-47f5-9867-a264786eb65d]
stackit_public_ip.app: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,eu01,009b5b12-9317-476a-ac9a-7d6ca51f53df]
stackit_server.app: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,eu01,240c9023-9f23-4577-b006-c92ff20abc82]
stackit_server_update_enable.main: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,240c9023-9f23-4577-b006-c92ff20abc82,eu01]
stackit_server_backup_enable.main: Refreshing state... [id=0d82261a-8245-4854-9e97-e0caa1b44568,240c9023-9f23-4577-b006-c92ff20abc82,eu01]
╷
│ Error: Error reading server update enable
│
│   with stackit_server_update_enable.main,
│   on main.tf line 97, in resource "stackit_server_update_enable" "main":
│   97: resource "stackit_server_update_enable" "main" {
│
│ Calling API: 401 Unauthorized, status code 401, Body:
│
│ Trace ID: "1c077be200356ac62192a07d6443cf32"

Expected behavior

No random 401 (or 404).

Environment

Terraform v1.13.3
on linux_amd64

  • provider registry.terraform.io/stackitcloud/stackit v0.96.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions