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:
parent
ef5311ea75
commit
8fb72a205b
@ -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
|
||||
|
@ -0,0 +1,2 @@
|
||||
centos7
|
||||
selinux-permissive
|
@ -1 +0,0 @@
|
||||
centos7
|
@ -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.
|
@ -0,0 +1,2 @@
|
||||
fedora
|
||||
selinux-permissive
|
@ -0,0 +1,3 @@
|
||||
Adds the ubuntu element.
|
||||
|
||||
No further customization is required for an ubuntu test image at this time.
|
@ -0,0 +1 @@
|
||||
ubuntu
|
Loading…
x
Reference in New Issue
Block a user