LVM: error_deleting status when deleting volume that does not exist on backend

Bug #1707004 reported by Chuck Fouts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

When deleting a volume, using the LVM driver, if the volume does not exist on the backend the driver throws an exception and status is set to error_deleting. Bug originally reported in Ocata.

http://paste.openstack.org/show/616750/

Tags: drivers lvm
tags: added: drivers lvm
Revision history for this message
b@rby (barby) wrote :

additional operations posted on pastebin here:

http://paste.openstack.org/show/616719/

http://paste.openstack.org/show/616728/

http://paste.openstack.org/show/616731/

http://paste.openstack.org/show/616746/

http://paste.openstack.org/show/616750/

The problem came up after I deleted instances, when I could not delete the volumes this was not possible.

Openstack was installed through the packstack --allinone and because the default space was little, I created a loopback (/dev/loop1) I formatted device and made it to become a physical volume and extended the volume group created by default from the Packstack installation with new pv.

Revision history for this message
b@rby (barby) wrote :
Download full text (3.7 KiB)

[root@localhost ~]# lvs
  WARNING: Device for PV mFRxBp-h855-e9nF-gfSs-MVrm-03d1-CGb8ky not found or rejected by a filter.
  LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
  volume-4ddc80d5-c3ed-4770-a7c6-3c8356674d79 cinder-volumes -wi------- 10.00g
  volume-6ca23cd3-879d-4f22-ac13-95888198cdad cinder-volumes -wi------- 6.00g
  volume-b7fe5630-62cd-4a4b-a0b6-ce3dcc563bdd cinder-volumes -wi-----p- 10.00g
  volume-ec9fd81d-0490-46f4-9d68-d039c002afc5 cinder-volumes -wi-----p- 10.00g
  home cl -wi-ao---- 100.00g
  root cl -wi-ao---- 291.76g
  swap cl -wi-ao---- 16.00g
[root@localhost ~]# vgs
  WARNING: Device for PV mFRxBp-h855-e9nF-gfSs-MVrm-03d1-CGb8ky not found or rejected by a filter.
  VG #PV #LV #SN Attr VSize VFree
  cinder-volumes 2 4 0 wz-pn- 60.59g 24.59g
  cl 2 3 0 wz--n- 612.38g 204.62g
[root@localhost ~]# lvremove volume-4ddc80d5-c3ed-4770-a7c6-3c8356674d79 cinder-volumes
  Volume group "volume-4ddc80d5-c3ed-4770-a7c6-3c8356674d79" not found
  Cannot process volume group volume-4ddc80d5-c3ed-4770-a7c6-3c8356674d79
  WARNING: Device for PV mFRxBp-h855-e9nF-gfSs-MVrm-03d1-CGb8ky not found or rejected by a filter.
  Logical volume "volume-4ddc80d5-c3ed-4770-a7c6-3c8356674d79" successfully removed
  Logical volume "volume-6ca23cd3-879d-4f22-ac13-95888198cdad" successfully removed
  Logical volume "volume-ec9fd81d-0490-46f4-9d68-d039c002afc5" successfully removed
  Logical volume "volume-b7fe5630-62cd-4a4b-a0b6-ce3dcc563bdd" successfully removed

romoving a ghost logical volume, it has removed all ghost lv, but it remained only a ghost lv that seems attached to an instance, but this instance no longer exist..

[root@localhost ~(keystone_admin)]# cinder list
+--------------------------------------+-----------+------+------+-------------+----------+--------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------+------+-------------+----------+--------------------------------------+
| b7fe5630-62cd-4a4b-a0b6-ce3dcc563bdd | available | | 10 | iscsi | true | 02875333-de15-4d04-b0d1-e97c009067df |
+--------------------------------------+-----------+------+------+-------------+----------+--------------------------------------+

[root@localhost ~(keystone_admin)]# nova list
+--------------------------------------+----------+--------+------------+-------------+----------------------+
| ID | Name...

Read more...

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.