Add lvm image to loci-cinder

This change adds an LVM image to run the
reference implementation of cinder-volume.

It includes LVM2 service and iSCSI target.

Change-Id: I5c109c0496b09213460a5abb7472689da3402f3f
This commit is contained in:
John Griffith 2017-05-22 18:27:45 -06:00 committed by j-griffith
parent 4cde954815
commit 2e63b33d77
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