← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1231773] Re: can not delete volume

 

Bug did not result in code getting merged, so setting Invalid

** Changed in: nova
       Status: Fix Committed => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1231773

Title:
  can not delete volume

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  i create a  ubuntu iso image, and attach it to a volume when booting a vm, then install ubuntu os, everything seems to be ok.
  when i delete the vm, both dashboard and console shows that the vm is being deleted, but the volume attached to the vm is still in attach status and attach to an server which is not exist.

  
  root@cloud:~# nova volume-list
  +--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
  | ID                                   | Status | Display Name | Size | Volume Type | Attached to                          |
  +--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
  | 195540f9-fcbc-44a6-a2c5-44ea5bd93597 | in-use | ubuntu-8G    | 8    | None        | 9941fbae-8be1-46bd-9d9f-20c0ca2e5e35 |
  | e19dd313-2eda-4471-b437-480596b4d820 | in-use | ele-8G       | 8    | None        | dda697e6-8eed-40c1-95f6-7f9f506c9ad9 |
  | ea31a1dd-da78-40b3-8db2-576e50bb563c | in-use | rhel-8G      | 8    | None        | 966ad533-b081-46d4-b000-319f4f882d22 |
  +--------------------------------------+--------+--------------+------+-------------+--------------------------------------+
  root@cloud:~# nova show 9941fbae-8be1-46bd-9d9f-20c0ca2e5e35 
  ERROR: No server with a name or ID of '9941fbae-8be1-46bd-9d9f-20c0ca2e5e35' exists.

  i try to detach it:
  root@cloud:~# nova volume-detach 9941fbae-8be1-46bd-9d9f-20c0ca2e5e35 195540f9-fcbc-44a6-a2c5-44ea5bd93597
  ERROR: No server with a name or ID of '9941fbae-8be1-46bd-9d9f-20c0ca2e5e35' exists.

  i try to delete direclty:
  root@cloud:~# nova volume-delete 195540f9-fcbc-44a6-a2c5-44ea5bd93597
  ERROR: Invalid volume: Volume status must be available or error (HTTP 400) (Request-ID: req-ad7ba78e-656a-4193-b1a7-941c82dce123)

  May this be a bug?

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1231773/+subscriptions