digitalocean / doctl

The official command line interface for the DigitalOcean API.
https://docs.digitalocean.com/reference/doctl/
Apache License 2.0
3.26k stars 397 forks source link

Cannot detach a volume from a droplet? #207

Closed 1egoman closed 7 years ago

1egoman commented 7 years ago

I have a droplet with a volume attached. I'm trying to detach the droplet and cannot with the command below. Am I doing something wrong? Thanks!

$ doctl compute volume list
ID                                      Name   Size      Region    Droplet IDs
11180985-XXXX-XXXX-XXXX-0242ac111803    foo    10 GiB    nyc1      [12345678]
$ doctl compute volume-action detach 11180985-XXXX-XXXX-XXXX-0242ac111803
detach a volume

Usage:
  doctl compute volume-action detach <volume-id> [flags]

Aliases:
  detach, d

Global Flags:
  -t, --access-token string   API V2 Access Token
  -c, --config string         config file (default is $HOME/.config/doctl/config.yaml)
  -o, --output string         output format [text|json] (default "text")
      --trace                 trace api access
  -v, --verbose               verbose output

Error: POST https://api.digitalocean.com/v2/volumes/11180985-XXXX-XXXX-XXXX-0242ac111803/actions: 422 Attachment not found
$

(above anonymized, let me know if more detail is needed)

xmudrii commented 7 years ago

‎‎You're not doing anything wrong.   

This is probably issue API issue which was discussed under godo/136 (‎https://github.com/digitalocean/godo/pull/136).  

I think we will know soon more about it.