From ea6caeaac9c0c06fc8ec01939e50488c7904c9d9 Mon Sep 17 00:00:00 2001 From: David Peraza Date: Mon, 13 Jul 2015 18:45:05 -0400 Subject: Adding tgt config to cinder-volume container Adding LVM filters to lvm.conf and cinder volumes to tgtd.conf Partial-Bug: 1473090 Change-Id: I9ef9f4d74ddafd7f4270023177c537cd6ed014cd --- docker/common/cinder-app/cinder-volume/config-internal.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docker/common') diff --git a/docker/common/cinder-app/cinder-volume/config-internal.sh b/docker/common/cinder-app/cinder-volume/config-internal.sh index 056197425..9b3998967 100755 --- a/docker/common/cinder-app/cinder-volume/config-internal.sh +++ b/docker/common/cinder-app/cinder-volume/config-internal.sh @@ -71,6 +71,12 @@ sed -i 's/udev_sync = 1/udev_sync = 0/' /etc/lvm/lvm.conf sed -i 's/udev_rules = 1/udev_rules = 0/' /etc/lvm/lvm.conf sed -i 's/use_lvmetad = 1/use_lvmetad = 0/' /etc/lvm/lvm.conf +#Adding LVM filter +sed -i 's:filter = \[ "a/.\*/" \]:filter = \[ "a/sda/", "r/.\*/"\]:g' /etc/lvm/lvm.conf + +#Adding cinder volumes to tgtd config +echo "include /etc/cinder/volumes/*" >> /etc/tgt/tgtd.conf + # https://bugs.launchpad.net/kolla/+bug/1461635 # Cinder requires mounting /dev in the cinder-volume, nova-compute, # and libvirt containers. If /dev/pts/ptmx does not have proper permissions -- cgit v1.2.3