Build selinux-permissive test images

With selinux enabled, the dib-built fedora image needs to do a full
relabel on boot, which is so slow in the gate environment that tests
are timing out.

This change makes wrapper elements for all the test distros which
allows for adding extra per-distro elements to the image like
selinux-permissive.

This change also goes back to image file names which have no timestamp.
This is because the publishing method is going to be to swift instead
of tarballs.o.o, and swift supports atomic uploads.

Change-Id: I797588a90f2aea2f60042739f35bd43b8b0c284c
This commit is contained in:
Steve Baker 2015-03-13 13:59:04 +13:00
parent ef5311ea75
commit 8fb72a205b
10 changed files with 16 additions and 4 deletions

View File

@ -15,11 +15,12 @@
set -e
# known good values of DISTRO are fedora, ubuntu, centos7-rdo
export DISTRO=${DISTRO:-fedora}
# known good values of DISTRO are
# fedora-heat-test, ubuntu-heat-test, centos7-heat-test
export DISTRO=${DISTRO:-fedora-heat-test}
export ELEMENTS_PATH=${ELEMENTS_PATH:-`dirname "$0"`/elements}
export IMAGE_NAME=${IMAGE_NAME:-$DISTRO-heat-test-image-`date +%Y%m%d_%H%M%S`}
export IMAGE_NAME=${IMAGE_NAME:-$DISTRO-image}
disk-image-create -x --no-tmpfs -o $IMAGE_NAME $DISTRO \
vm python-dev heat-agent-pkg-requires heat-config-hook-requires

View File

@ -0,0 +1,2 @@
centos7
selinux-permissive

View File

@ -0,0 +1,4 @@
Adds the fedora and selinux-permissive elements.
selinux-permissive is added to avoid a relabel during boot, which is very
slow in a gate environment.

View File

@ -0,0 +1,2 @@
fedora
selinux-permissive

View File

@ -0,0 +1,3 @@
Adds the ubuntu element.
No further customization is required for an ubuntu test image at this time.

View File

@ -0,0 +1 @@
ubuntu