aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/run.yml7
-rwxr-xr-xtools/setup_gate.sh38
-rw-r--r--zuul.d/jobs.yaml11
-rw-r--r--zuul.d/nodesets.yaml6
-rw-r--r--zuul.d/project.yaml1
5 files changed, 25 insertions, 38 deletions
diff --git a/tests/run.yml b/tests/run.yml
index acb457986..bf027f291 100644
--- a/tests/run.yml
+++ b/tests/run.yml
@@ -37,6 +37,13 @@
- item.branch == zuul.branch
with_items: "{{ zuul['items'] }}"
+ # NOTE(hrw): we do not publish Debian images (yet)
+ - name: enable building images for Debian
+ set_fact:
+ need_build_image: true
+ when:
+ ansible_distribution == "Debian"
+
# NOTE(yoctozepto): required to template template_overrides.j2 for Zuul
- name: Include kolla Zuul vars if building new images
include_vars:
diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh
index 9ef8c6b88..4f8d2fccd 100755
--- a/tools/setup_gate.sh
+++ b/tools/setup_gate.sh
@@ -25,18 +25,6 @@ function setup_openstack_clients {
}
function setup_config {
- # Use Infra provided pypi.
- # Wheel package mirror may be not compatible. So do not enable it.
- PIP_CONF=$(mktemp)
- cat > ${PIP_CONF} <<EOF
-[global]
-timeout = 60
-index-url = $NODEPOOL_PYPI_MIRROR
-trusted-host = $NODEPOOL_MIRROR_HOST
-EOF
- echo "RUN echo $(base64 -w0 ${PIP_CONF}) | base64 -d > /etc/pip.conf" | sudo tee /etc/kolla/header
- rm ${PIP_CONF}
-
if [[ $ACTION != "bifrost" ]]; then
GATE_IMAGES="cron,fluentd,glance,haproxy,keepalived,keystone,kolla-toolbox,mariadb,memcached,neutron,nova,openvswitch,rabbitmq,horizon,chrony,heat,placement"
else
@@ -67,7 +55,6 @@ EOF
cat <<EOF | sudo tee /etc/kolla/kolla-build.conf
[DEFAULT]
-include_header = /etc/kolla/header
namespace = lokolla
base = ${BASE_DISTRO}
install_type = ${INSTALL_TYPE}
@@ -83,29 +70,6 @@ gate = ${GATE_IMAGES}
EOF
mkdir -p /tmp/logs/build
-
- if [[ "${DISTRO}" == "Debian" ]]; then
- # Infra does not sign their mirrors so we ignore gpg signing in the gate
- echo "RUN echo 'APT::Get::AllowUnauthenticated \"true\";' > /etc/apt/apt.conf" | sudo tee -a /etc/kolla/header
-
- # Optimize the repos to take advantage of the Infra provided mirrors for Ubuntu
- cat << EOF | sudo tee -a /etc/kolla/kolla-build.conf
-apt_sources_list = /etc/kolla/sources.list
-EOF
- sudo cp /etc/apt/sources.list /etc/kolla/sources.list
- sudo cat /etc/apt/sources.list.available.d/ubuntu-cloud-archive-pike.list | sudo tee -a /etc/kolla/sources.list
- # Append non-infra provided repos to list
- cat << EOF | sudo tee -a /etc/kolla/sources.list
-deb http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu xenial main
-deb http://repo.percona.com/apt xenial main
-deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
-deb http://packages.elastic.co/kibana/4.6/debian stable main
-EOF
- fi
-}
-
-function detect_distro {
- DISTRO=$(ansible all -i "localhost," -msetup -clocal | awk -F\" '/ansible_os_family/ {print $4}')
}
function setup_ansible {
@@ -121,8 +85,6 @@ function setup_ansible {
# TODO(SamYaple): Move to virtualenv
sudo pip install -U "ansible${ANSIBLE_VERSION}" "ara<1.0.0"
- detect_distro
-
sudo mkdir /etc/ansible
ara_location=$(python -m ara.setup.callback_plugins)
sudo tee /etc/ansible/ansible.cfg<<EOF
diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml
index d21ea388e..485dd8d1b 100644
--- a/zuul.d/jobs.yaml
+++ b/zuul.d/jobs.yaml
@@ -8,6 +8,17 @@
install_type: source
- job:
+ name: kolla-ansible-debian-source
+ parent: kolla-ansible-base
+ nodeset: kolla-ansible-debian
+ voting: false
+ required-projects:
+ - openstack/kolla
+ vars:
+ base_distro: debian
+ install_type: source
+
+- job:
name: kolla-ansible-ubuntu-source
parent: kolla-ansible-base
nodeset: kolla-ansible-bionic
diff --git a/zuul.d/nodesets.yaml b/zuul.d/nodesets.yaml
index bbc8a0f41..fb498c1ca 100644
--- a/zuul.d/nodesets.yaml
+++ b/zuul.d/nodesets.yaml
@@ -6,6 +6,12 @@
label: centos-7
- nodeset:
+ name: kolla-ansible-debian
+ nodes:
+ - name: primary
+ label: debian-buster
+
+- nodeset:
name: kolla-ansible-xenial
nodes:
- name: primary
diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml
index 0992a9905..a19ba5608 100644
--- a/zuul.d/project.yaml
+++ b/zuul.d/project.yaml
@@ -13,6 +13,7 @@
check:
jobs:
- kolla-ansible-centos-source
+ - kolla-ansible-debian-source
- kolla-ansible-ubuntu-source
- kolla-ansible-ubuntu-source-ceph
- kolla-ansible-centos-source-ceph