diff options
| author | David Peraza <david_peraza@persistentsys.com> | 2015-07-13 18:45:05 -0400 |
|---|---|---|
| committer | David Peraza <david_peraza@persistentsys.com> | 2015-07-13 18:53:41 -0400 |
| commit | ea6caeaac9c0c06fc8ec01939e50488c7904c9d9 (patch) | |
| tree | 57dbfc81f7e2263a7ae37d3c3809d57961b5eb87 /docker/common/cinder-app | |
| parent | 2207f45d9d50612ced8e75e8a3e8979597f30d85 (diff) | |
| download | kolla-ea6caeaac9c0c06fc8ec01939e50488c7904c9d9.tar.gz kolla-ea6caeaac9c0c06fc8ec01939e50488c7904c9d9.zip | |
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
Diffstat (limited to 'docker/common/cinder-app')
| -rwxr-xr-x | docker/common/cinder-app/cinder-volume/config-internal.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
