]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use lvm_conf_file directory for LVM_SYSTEM_DIR value.
authorFergal Mc Carthy <fergal.mccarthy@hpe.com>
Tue, 22 Sep 2015 21:24:25 +0000 (17:24 -0400)
committerFergal Mc Carthy <fergal.mccarthy@hpe.com>
Tue, 13 Oct 2015 17:17:35 +0000 (13:17 -0400)
commit6f05f11945ddb4378e29be2e3bc923ebe07b035e
tree06c57339c0821f775146ef414bc4a8719af33349
parent7fb767f2d652f070a20fd70d92585d61e56f3a50
Use lvm_conf_file directory for LVM_SYSTEM_DIR value.

Currently when LVM_SYSTEM_DIR is added to LVM.LVM_CMD_PREFIX it is
hardcoded as /etc/cinder.

However the configuration option lvm_conf_file could specify a file
located in an arbitrary directory, not just /etc/cinder, so we should
be using the path to the directory containing the specified lvm.conf
file as the value for LVM_SYSTEM_DIR.

Change-Id: I702fdfb3640ef99255fda0fda4d39d0a80ce9dcc
Closes-Bug: #1498651
cinder/brick/local_dev/lvm.py