Deleting volumes set as PVs results in unresolvable error_deleting status

Bug #1090595 reported by Bill Rich
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Bill Rich

Bug Description

1) launch instance
2) create volume
3) attach volume
4) log in to instance
5) from instance: pvcreate /dev/vdc
6) from instance: vgcreate vg-error /dev/vdc
7) from instance: lvcreate -L 1G -n lv-error vg-error
8) create a new logical volume (this can be done by either creating a new volume, or manually from cli on the cinder server, ie lvcreate -L 1M -n delete_me cinder-volumes)
9) from instance: lvremove lv-error
10) from instance: vgremove vg-error
11) from instance: pvremove /dev/vdc
10) detach volume
11) delete volume

A map of what happens:
After step 7
Description: lvm setup is created on vm; cinder server will read lvm config if queried, but since no new device has been created, lvm has not called on device mapper to mknods
  On vm:
    /dev/vdc->vg-error->lv-error
    /dev/vg-error/lv-error exists
  On cinder server
    /dev/sdX->cinder-volumes->volume-UUID->(VM)->/dev/vdc
    /dev/cinder-volumes/volume-UUID exists
    /dev/vg-error/lv-error does NOT exist (or the /dev/dm-* device)

After step 8
Description: since lvcreate was run on the cinder server, lvm called on device mapper to mknods for missing logical volumes and create symlink structure
  On vm:
    /dev/vdc->vg-error->lv-error
    /dev/vg-error/lv-error exists
  On cinder server
    /dev/sdX->cinder-volumes->volume-UUID->(VM)->/dev/vdc->vg-error->lv-error
    /dev/cinder-volumes/volume-UUID exists
    /dev/vg-error/lv-error now exists (including the /dev/dm-* device)

After step 11
Description: lvm config was update, but the associate device mapper calls to remove logical volume devices were not made. We now have devices that lvm doesn't know about, but depend on original cinder-created logical volume
  On vm:
    /dev/vdc
    /dev/vg-error/lv-error does NOT exist
  On cinder server
    /dev/sdX->cinder-volumes->volume-UUID->(VM)->/dev/vdc
    /dev/cinder-volumes/volume-UUID exists
    /dev/vg-error/lv-error now exists (including the /dev/dm-* device)

Bill Rich (bill-rich)
Changed in cinder:
assignee: nobody → Bill Rich (bill-rich)
status: New → In Progress
Bill Rich (bill-rich)
Changed in cinder:
assignee: Bill Rich (bill-rich) → nobody
status: In Progress → New
Bill Rich (bill-rich)
Changed in cinder:
assignee: nobody → Bill Rich (bill-rich)
Bill Rich (bill-rich)
Changed in cinder:
status: New → In Progress
Revision history for this message
Bill Rich (bill-rich) wrote :

To fix this, add 'volume_list = ["<VG_NAME>", "<VG_NAME", ... ]` to activation section of /etc/lvm/lvm.conf on cinder server

description: updated
Revision history for this message
Bill Rich (bill-rich) wrote :

Change I40d12bd1 is submitted for review

Bill Rich (bill-rich)
Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Avishay Traeger (avishay-il) wrote : AUTO: Avishay Traeger is out of the office (returning 05/12/2013)

I am out of the office until 05/12/2013.

For technical issues regarding the Storwize/SVC Cinder driver, please
contact: Jie Ping Wu <email address hidden>, Li Min Liu <email address hidden>,
Ronen Kat <email address hidden>
For all other issue, please contact my manager, Dalit Naor
<email address hidden>

Note: This is an automated response to your message "[Bug 1090595] Re:
Deleting volumes set as PVs results in unresolvable error_deleting
status" sent on 22/04/2013 20:46:38.

This is the only notification you will receive while this person is away.

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.