]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
LVM: Activate Thin Pool LV upon initialization
authorEric Harney <eharney@redhat.com>
Fri, 13 Dec 2013 15:39:09 +0000 (10:39 -0500)
committerGerrit Code Review <review@openstack.org>
Thu, 2 Jan 2014 15:51:06 +0000 (15:51 +0000)
commit6ccc654a0509c4e308713f9e6fd95266cd112c9d
treef1b5fe6c1a7b69e1944ffe366809d89428efeb0f
parentf52cb1b1c44c20d034bbb72e2ae98dbadc8e2495
LVM: Activate Thin Pool LV upon initialization

If the LVM thin pool is not active, space calculation fails,
as data_percent is not known.  Activate the pool upon initialization,
since we intend to use it anyway.

Slightly refactors _get_thin_pool_free_space so that it is clear
which missing/unexpected value is breaking things if a similar error
occurs for some other reason.

Closes-Bug: #1260773

Change-Id: I7cb187746c1ac297b82254c6efa37ba1c5fbb3e1
cinder/brick/local_dev/lvm.py