Ensure correct cinder dir is written to tgt config
The wrong directory was being placed in the tgtd config. This change will allow https://review.openstack.org/13633 to gate. Change-Id: Icbf7b5ecc9bc53ccc2aed0cacb9f5f61abe8f882
This commit is contained in:
parent
6dd06ae7e6
commit
c6cc585f97
@ -208,7 +208,7 @@ function start_cinder() {
|
|||||||
if [[ "$os_PACKAGE" = "deb" ]]; then
|
if [[ "$os_PACKAGE" = "deb" ]]; then
|
||||||
_configure_tgt_for_config_d
|
_configure_tgt_for_config_d
|
||||||
if [[ ! -f /etc/tgt/conf.d/cinder.conf ]]; then
|
if [[ ! -f /etc/tgt/conf.d/cinder.conf ]]; then
|
||||||
echo "include $CINDER_DIR/volumes/*" | sudo tee /etc/tgt/conf.d/cinder.conf
|
echo "include $CINDER_STATE_PATH/volumes/*" | sudo tee /etc/tgt/conf.d/cinder.conf
|
||||||
fi
|
fi
|
||||||
# tgt in oneiric doesn't restart properly if tgtd isn't running
|
# tgt in oneiric doesn't restart properly if tgtd isn't running
|
||||||
# do it in two steps
|
# do it in two steps
|
||||||
|
Loading…
Reference in New Issue
Block a user