Giter VIP home page Giter VIP logo

Comments (2)

djsly avatar djsly commented on July 26, 2024 1

the volumeDroplet test is failing, working on a fix PR now.

=== RUN   TestAccDigitalOceanVolume_Droplet
--- FAIL: TestAccDigitalOceanVolume_Droplet (54.61s)
	testing.go:492: Error destroying resource! WARNING: Dangling resources
		may exist. The full state and error is shown below.
		
		Error: Error applying: 1 error(s) occurred:
		
		* digitalocean_volume.foobar (destroy): 1 error(s) occurred:
		
		* digitalocean_volume.foobar: Error deleting volume: DELETE https://api.digitalocean.com/v2/volumes/7ae3de6e-6069-11e7-a457-0242ac110305: 409 A volume that's attached to a Droplet cannot be deleted. Please detach it first before deleting.
		
		State: digitalocean_volume.foobar:
		  ID = 7ae3de6e-6069-11e7-a457-0242ac110305
		  description = peace makes plenty
		  droplet_ids.# = 1
		  droplet_ids.1415892463 = 53916120
		  name = volume-cskjsz0hqg
		  region = nyc1
		  size = 100

from terraform-provider-digitalocean.

djsly avatar djsly commented on July 26, 2024

This issue started occurring on Monday June 26th, most probably by a change on DO's side.

Snippet from my discussion with DO's support line

The first occurrence was seen at 5:44 PM EDT.
The previous clean up that was a success (hence not affected by the new issue) was at 4:36 PM EDT.

when using the API directly, we do get the error when the CURL commands are performed one after the other right away.

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


The output (it worked after 3-4 secs)

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 terraform-provider-digitalocean.

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.