lvm driver fails to catch exception in migrate_volume

Bug #1277512 reported by git-harry on 2014-02-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Medium
git-harry

Bug Description

cinder/volume/drivers/lvm.py

LVMISCSIDriver.migrate_volume

When checking if a volume group exists in the list of available volume groups, if vg_list does not contain dest_vg calling next() on the generator will raise a StopIteration exception and not return None.

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

Changed in cinder:
assignee: nobody → git-harry (git-harry)
status: New → In Progress
Changed in cinder:
importance: Undecided → Medium

Reviewed: https://review.openstack.org/71903
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=c311e94d3d1f19924ac77d197c616782b497f908
Submitter: Jenkins
Branch: master

commit c311e94d3d1f19924ac77d197c616782b497f908
Author: git-harry <email address hidden>
Date: Fri Feb 7 13:37:59 2014 +0000

    lvm: unhandled exception when migrating volume

    Catches the StopIteration exception if the destination volume group
    does not exist when attempting to migrate a volume.

    Change-Id: I0b5dd15e4c7198fe54abf1aa917a60554adcd568
    Closes-Bug: #1277512

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

Other bug subscribers