]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix the LV NotFound situation for thin-type LVM
authorDavid Pineau <dav.pineau@gmail.com>
Thu, 6 Nov 2014 14:01:13 +0000 (15:01 +0100)
committerDavid Pineau <dav.pineau@gmail.com>
Mon, 10 Nov 2014 11:49:44 +0000 (12:49 +0100)
commitf782b9c4fe1aaa6ffb455dd2ef4ea9c14bc6ca69
tree7d3fa10a7a11b4423d910c99052d775103b94c97
parent37e4a12652c803d60c18079b735d96e5c7890f07
Fix the LV NotFound situation for thin-type LVM

If the logical volume is not found, LVM displays on the error output
that the volumes could not be found. So here, we filter on this very
specific situation, and let all the other cases go through the stack.

Added a test for this new code path, which raises an exception of the
proper type to be caught by the new code.

Change-Id: I703af8ccd87c6332d9f88eff63fcf26ebed234f4
Closes-Bug: #1390081
cinder/brick/local_dev/lvm.py
cinder/tests/brick/test_brick_lvm.py