Merge "Add lvm image to loci-cinder"

This commit is contained in:
Jenkins 2017-06-12 05:12:21 +00:00 committed by Gerrit Code Review
commit 868b1bb7d2
9 changed files with 51 additions and 0 deletions

12
centos/lvm/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM openstackloci/cinder:centos
ARG OVERRIDE=override
ADD $OVERRIDE /
RUN set -x \
&& yum install -y lvm2 \
targetcli \
&& sed -i -e 's/udev_sync = 1/udev_sync = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/udev_rules = 1/udev_rules = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/use_lvmetad = 0/use_lvmetad = 1/g' /etc/lvm/lvm.conf

View File

3
centos/lvm/testvars Normal file
View File

@ -0,0 +1,3 @@
export PROJECT=cinder
export DISTRO=debian
export PLUGIN=lvm

15
debian/lvm/Dockerfile vendored Normal file
View File

@ -0,0 +1,15 @@
FROM openstackloci/cinder:debian
ARG OVERRIDE=override
ADD $OVERRIDE /
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends lvm2 \
tgt \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i -e 's/udev_sync = 1/udev_sync = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/udev_rules = 1/udev_rules = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/use_lvmetad = 0/use_lvmetad = 1/g' /etc/lvm/lvm.conf \
&& echo "include /var/lib/cinder/volumes/*" >> /etc/tgt/targets.conf

0
debian/lvm/override/.gitkeep vendored Normal file
View File

3
debian/lvm/testvars vendored Normal file
View File

@ -0,0 +1,3 @@
export PROJECT=cinder
export DISTRO=debian
export PLUGIN=lvm

15
ubuntu/lvm/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM openstackloci/cinder:ubuntu
ARG OVERRIDE=override
ADD $OVERRIDE /
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends lvm2 \
tgt \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i -e 's/udev_sync = 1/udev_sync = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/udev_rules = 1/udev_rules = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/use_lvmetad = 0/use_lvmetad = 1/g' /etc/lvm/lvm.conf \
&& echo "include /var/lib/cinder/volumes/*" >> /etc/tgt/targets.conf

View File

3
ubuntu/lvm/testvars Normal file
View File

@ -0,0 +1,3 @@
export PROJECT=cinder
export DISTRO=ubuntu
export PLUGIN=lvm