Cannot remove a volume in error_extending status

Bug #1214228 reported by Ken'ichi Ohmichi on 2013-08-20
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Undecided
Ken'ichi Ohmichi

Bug Description

Now LVM extend_volume has not been implemented yet, then "cinder extend" command causes "error_extending" volume.
We must be able to remove "error_extending" volume, because we cannot retrieve it without changing database status.
If trying to remove the volume, now it fails like the following:

$ cinder list
+--------------------------------------+-----------------+--------------+------+-------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------------+--------------+------+-------------+----------+--------------------------------------+
| 2afc2bda-97d2-4aac-aad1-5c7e7808b144 | error_extending | vol-test01 | 1 | None | False | |
+--------------------------------------+-----------------+--------------+------+-------------+----------+--------------------------------------+
$ cinder delete vol-test01
ERROR: Invalid volume: Volume status must be available or error, but current status is: error_extending
$

I feel "error_extending" also would be error status, so it is good to remove the volume.

Fix proposed to branch: master
Review: https://review.openstack.org/42802

Changed in cinder:
assignee: nobody → Ken'ichi Ohmichi (oomichi)
status: New → In Progress

Reviewed: https://review.openstack.org/42802
Committed: http://github.com/openstack/cinder/commit/e95a64d17d67ac8e9e5cc01e145deef8b465c5a5
Submitter: Jenkins
Branch: master

commit e95a64d17d67ac8e9e5cc01e145deef8b465c5a5
Author: Ken'ichi Ohmichi <email address hidden>
Date: Tue Aug 20 12:26:36 2013 +0900

    Allow to delete a volume in error_extending status

    We must be able to remove "error_extending" volume, because we
    cannot retrieve it without changing database status.
    If trying to remove the volume, now it fails like the following:

    $ cinder delete vol-test01
    ERROR: Invalid volume: Volume status must be available or error,
    but current status is: error_extending
    $

    "error_extending" also would be error status, so it is good to
    remove the volume.

    Fixes bug #1214228

    Change-Id: I861e7af75f2c50d4e03ef3680dccde73078b4888

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2013-09-05
Changed in cinder:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2013-10-17
Changed in cinder:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers