Skip to content

Droplet re-creation fails with 404 error #1486

@karlkfi

Description

@karlkfi

Bug Report

Describe the bug

GPU droplet re-creation doesn't tolerate 404s.

Affected Resource(s)

  • digitalocean_droplet

Expected Behavior

Re-creation should destroy, wait for destruction to complete, then re-create, without erroring.

Actual Behavior

$ terraform apply .tfplan
module.gpu_compute.digitalocean_droplet.gpu_droplet["mi325x8-300"]: Creating...
module.gpu_compute.digitalocean_droplet.gpu_droplet["mi325x8-300"]: Still creating... [00m10s elapsed]
╷
│ Error: Error waiting for droplet (536572909) to become ready: Error retrieving droplet: GET https://api.digitalocean.com/v2/droplets/536572909: 404 (request "59af37fd-bb3b-4926-a107-1faa751bbe88") The resource you were accessing could not be found.
│
│   with module.gpu_compute.digitalocean_droplet.gpu_droplet["mi325x8-300"],
│   on ../../../modules/do/gpu_compute/main.tf line 1, in resource "digitalocean_droplet" "gpu_droplet":
│    1: resource "digitalocean_droplet" "gpu_droplet" {
│

Steps to Reproduce

  1. Create a GPU droplet
  2. Change the config in tf to cause re-creation
  3. terraform apply

Terraform version
v1.14.2

Provider version
v2.71.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions