]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
LVM: Robustify skipactivation detection
authorDirk Mueller <dirk@dmllr.de>
Wed, 15 Jan 2014 14:45:01 +0000 (15:45 +0100)
committerDirk Mueller <dirk@dmllr.de>
Mon, 27 Jan 2014 18:09:17 +0000 (19:09 +0100)
commit193096a476ca3da2ef7f36f89fdbd897c5bcc320
treeb13b69c23b4e81e0bb8310a150103193ed0d7333
parentcbc6e8ef5da434d0158b1cb8545c5182c5b96cdf
LVM: Robustify skipactivation detection

Running lvchange might fail due to not being in
$PATH for non-root user, and the corresponding OSError
was not caught.

Simply check for lvm2 being 2.02.99 or newer.

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