From b9d6cc2a7f2969af9bbef751db5899edce7eb1c2 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 2 Oct 2019 03:53:48 -0700 Subject: [PATCH] Add Debian/source CI job Change-Id: I0628b16e3ebdb3fa8196acdc1bd9c63e75bcfb09 --- tests/run.yml | 7 +++++++ tools/setup_gate.sh | 38 -------------------------------------- zuul.d/jobs.yaml | 11 +++++++++++ zuul.d/nodesets.yaml | 6 ++++++ zuul.d/project.yaml | 1 + 5 files changed, 25 insertions(+), 38 deletions(-) diff --git a/tests/run.yml b/tests/run.yml index acb457986e..bf027f2915 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 9ef8c6b88c..4f8d2fccd3 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} < /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 < /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<