diff --git a/tests/run.yml b/tests/run.yml index 7b487e1cd3..99f110e315 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -78,20 +78,19 @@ vars: kolla_build_config: DEFAULT: - profile: gate - logs_dir: /tmp/logs/build - quiet: true - # NOTE(yoctozepto): we cannot build and push at the same time on debian - # buster see https://github.com/docker/for-linux/issues/711. - push: "{{ base_distro != 'debian' }}" base: "{{ base_distro }}" - registry: "primary:4000" + engine: "{{ container_engine }}" + logs_dir: /tmp/logs/build namespace: lokolla + network_mode: host + profile: gate + push: true + quiet: true + registry: "primary:4000" tag: "{{ build_image_tag }}" template_override: /etc/kolla/template_overrides.j2 - # NOTE(yoctozepto): to avoid issues with IPv6 not enabled in the docker daemon - # and since we don't need isolated networks here, use host networking - network_mode: host + profiles: + gate: "{{ (scenario_images_core + (scenario_images_extra | default([]))) | select | join(',') }}" tasks: - name: Detect whether need build images set_fact: @@ -102,6 +101,15 @@ - item.project.short_name not in ["ansible-collection-kolla", "kayobe", "kolla-ansible", "tenks"] with_items: "{{ zuul['items'] }}" + - name: Use base_image from mirror on Debian/Ubuntu + vars: + base_image_append: + DEFAULT: + base_image: "quay.io/opendevmirror/{{ base_distro }}" + set_fact: + kolla_build_config: "{{ kolla_build_config | combine(base_image_append, recursive=True) }}" + when: ansible_facts.os_family == "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/tests/setup_gate.sh b/tests/setup_gate.sh index 86e442fe79..81618711f6 100755 --- a/tests/setup_gate.sh +++ b/tests/setup_gate.sh @@ -12,87 +12,6 @@ function prepare_images { return fi - if [[ $SCENARIO != "bifrost" ]]; then - GATE_IMAGES="^cron,^fluentd,^glance,^haproxy,^proxysql,^keepalived,^keystone,^kolla-toolbox,^mariadb,^memcached,^neutron,^nova-,^openvswitch,^rabbitmq,^horizon,^heat,^placement" - else - GATE_IMAGES="bifrost" - fi - - if [[ $SCENARIO == "cephadm" ]]; then - GATE_IMAGES+=",^cinder,^redis" - fi - - if [[ $SCENARIO == "cells" ]]; then - GATE_IMAGES+=",^proxysql" - fi - - if [[ $SCENARIO == "zun" ]]; then - GATE_IMAGES+=",^zun,^kuryr,^etcd,^cinder,^iscsid" - if [[ $BASE_DISTRO != "centos" && $BASE_DISTRO != "rocky" ]]; then - GATE_IMAGES+=",^tgtd" - fi - fi - - if [[ $SCENARIO == "scenario_nfv" ]]; then - GATE_IMAGES+=",^aodh,^tacker,^mistral,^redis,^barbican" - fi - if [[ $SCENARIO == "ironic" ]]; then - GATE_IMAGES+=",^dnsmasq,^ironic,^iscsid,^prometheus" - fi - if [[ $SCENARIO == "magnum" ]]; then - GATE_IMAGES+=",^designate,^magnum,^trove" - fi - if [[ $SCENARIO == "octavia" ]]; then - GATE_IMAGES+=",^redis,^octavia" - fi - if [[ $SCENARIO == "masakari" ]]; then - GATE_IMAGES+=",^masakari-,^hacluster-" - fi - - if [[ $SCENARIO == "ovn" ]]; then - GATE_IMAGES+=",^redis,^octavia,^ovn" - fi - - if [[ $SCENARIO == "mariadb" ]]; then - GATE_IMAGES="^cron,^fluentd,^haproxy,^proxysql,^keepalived,^kolla-toolbox,^mariadb" - fi - - if [[ $SCENARIO == "lets-encrypt" ]]; then - GATE_IMAGES+=",^letsencrypt,^haproxy" - fi - - if [[ $SCENARIO == "prometheus-opensearch" ]]; then - GATE_IMAGES="^cron,^fluentd,^grafana,^haproxy,^proxysql,^keepalived,^kolla-toolbox,^mariadb,^memcached,^opensearch,^prometheus,^rabbitmq" - fi - - if [[ $SCENARIO == "ipv6" ]]; then - GATE_IMAGES+=",^prometheus" - fi - - if [[ $SCENARIO == "venus" ]]; then - GATE_IMAGES="^cron,^opensearch,^fluentd,^haproxy,^proxysql,^keepalived,^keystone,^kolla-toolbox,^mariadb,^memcached,^rabbitmq,^venus" - fi - - if [[ $SCENARIO == "skyline" || $SCENARIO == "skyline-sso" ]]; then - GATE_IMAGES+=",^skyline" - fi - - sudo tee -a /etc/kolla/kolla-build.conf <