unmanage/delete keeps volume in "deleting" state

Bug #1634792 reported by Pranali Khatode
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

While managing the volume if user passed the invalid hostname like "opnestack-virtualBox" instead of "openstack-VirtualBox@lvmdriver-1#lvmdriver-1" then newly created volume goes into the error state.

When user try to unmanage or delete that volume, it remains into the deleting state forever.

steps to reproduce:

1.Create Logical Volume:

  $ sudo lvcreate --size 1G --name lvol stack-volumes-lvmdriver-1

  Found duplicate PV rSd2vOkfq0WXhmDP8DQXbn8LG2xfzOvs: using /dev/loop1 not /dev/loop0
  Logical volume "lvol" created

2.Manage the above created logical volume using cinder manage API.

 $ cinder manage openstack-VirtualBox lvol --name test-manage

+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2016-10-19T07:10:34.000000 |
| description | None |
| encrypted | False |
| id | b8cb6585-0fda-48ac-a52b-7eec27068a97 |
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | test-manage |
| os-vol-host-attr:host | openstack-VirtualBox |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 4528bfd3e78c481d88f933437c4b8a4a |
| replication_status | None |
| size | 0 |
| snapshot_id | None |
| source_volid | None |
| status | error |
| updated_at | 2016-10-19T07:10:34.000000 |
| user_id | fbd39e0b90e146c38d1ed5f57317d052 |
| volume_type | None |
+--------------------------------+--------------------------------------+

4.List cinder volume

$cinder list

+--------------------------------------+-----------+----------------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+----------------+------+-------------+----------+-------------+
| b8cb6585-0fda-48ac-a52b-7eec27068a97 | error | test-manage | 0 | - | false | |

5.unmanaged or delete the above created volume

$ cinder unmanage b8cb6585-0fda-48ac-a52b-7eec27068a97

+--------------------------------------+-----------+----------------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+----------------+------+-------------+----------+-------------+
| b8cb6585-0fda-48ac-a52b-7eec27068a97 | deleting | test-manage | 0 | - | false | |

Changed in cinder:
assignee: nobody → Pranali Khatode (pranali.khatode)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.openstack.org/401946
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Assignee Expired

Unassigning due to no activity for > 6 months.

Changed in cinder:
assignee: Pranali Khatode (pranali.khatode) → nobody
status: In Progress → New
Aseel Awwad (aseelawwad)
Changed in cinder:
assignee: nobody → Aseel Awwad (aseelawwad)
Aseel Awwad (aseelawwad)
Changed in cinder:
assignee: Aseel Awwad (aseelawwad) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.