Coder Social home page Coder Social logo

Comments (3)

mauricio avatar mauricio commented on August 17, 2024

Hey @djsly, can you elaborate on what's causing the issue here?

from godo.

djsly avatar djsly commented on August 17, 2024

Hi @mauricio , sure, the issue started last week, where the deletion of the volume (storage) started returning 409. An error about the volume still being attached to a droplet.

So, even though we delete the droplet using the API, we get a 204 request, it was possible before to issue a deletion of the volume right away. Not we have to wait 3-4 sec for the droplet to be deleted for real on the DO side before the volume be we deleted properly.

It would be beneficial that all DELETION requests would return the 204 once and only once the deletion process is completed.
HTTP Status Code 204: The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.

22:29 $ curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer <token>" "https://api.digitalocean.com/v2/droplets/53112244"

✔ ~ 
22:31 $ curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer <token>" "https://api.digitalocean.com/v2/volumes/938b3d10-5ade-11e7-91b8-0242ac116405"

{"id":"Illegal Action","message":"A volume that's attached to a Droplet cannot be deleted. Please detach it first before deleting."}✔ ~ 
22:31 $ 
✔ ~ 
22:31 $ 
✔ ~ 
22:31 $ curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer <token>" "https://api.digitalocean.com/v2/volumes/938b3d10-5ade-11e7-91b8-0242ac116405"
{"id":"Illegal Action","message":"A volume that's attached to a Droplet cannot be deleted. Please detach it first before deleting."}

✔ ~ 
22:31 $ curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer <token>" "https://api.digitalocean.com/v2/volumes/938b3d10-5ade-11e7-91b8-0242ac116405"
✔ ~

from godo.

mauricio avatar mauricio commented on August 17, 2024

@djsly fixed the issue himself at https://github.com/terraform-providers/terraform-provider-digitalocean/pull/22

from godo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.