Cinder ThinLVM snapshot deletion fails

Bug #1245529 reported by Eric Harney on 2013-10-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eric Harney

Bug Description

Affects stable/grizzly 2013.1.4.

Snapshot deletion for ThinLVMVolumeDriver will fail due to "0a86ef8 Fix secure delete for thick LVM snapshots" being backported but not having the logic which skips wiping for ThinLVM.

This causes the deletion process to fail since we look for the "-cow" device, but this never exists for ThinLVM (only thick).

Not broken in master or stable/havana due to this check which skips wiping for ThinLVM: .

Eric Harney (eharney) on 2013-10-28
tags: added: grizzly-backport-potential
Mike Perez (thingee) on 2013-10-30
tags: added: drivers lvm

Submitter: Jenkins
Branch: master

commit 2b49b3670aa2dbc55f777f875dbdb80788ca696e
Author: Eric Harney <email address hidden>
Date: Tue Oct 29 16:39:45 2013 -0400

    Add tests for LVM -cow clearing

    Ensure that volume_clear for Thick LVM snapshot deletion
    references the -cow device, and that it uses the LV instead
    of the -cow device for ThinLVM.

    These tests were written for a change to stable/grizzly --
    but are applicable for general use here as well.

    Related-Bug: #1245529
    Change-Id: I380ad7832d558d9aa73a701cbf3acc35229e70ab

Alan Pevec (apevec) on 2013-11-06
Changed in cinder:
status: New → Invalid
tags: removed: grizzly-backport-potential

Submitter: Jenkins
Branch: stable/grizzly

commit 64878632a0602879a59e4166232ef389cd6d0a60
Author: Eric Harney <email address hidden>
Date: Tue Oct 29 16:39:45 2013 -0400

    Clear correct device when deleting a ThinLVM snap

    The LVM driver tries to wipe a device using dd when
    a snapshot is deleted. For ThinLVM, it is attempting
    to wipe the /dev/mapper/cinder--volumes-<vol>-cow device,
    which does not exist for ThinLVM. This causes snapshot
    deletion to fail for ThinLVM if volume clearing is on.

    When using ThinLVM, only wipe the LV device rather than
    attempting to wipe the -cow device.

    This bug is only present in stable/grizzly (2013.1.4).
    It does not exist in stable/havana or master due to these
    f702fe7 Fix secure delete for thick LVM snapshots
    de43923 Don't zero out thin provisioned LV's on delete

    Closes-Bug: #1245529
    Change-Id: I1d8dd618e51cc99b8947fbe0697a1c765c8251ba

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers