kayobe/playbooks/kayobe-seed-base/run.yml
Pierre Riteau ee79fc5d4d CI: Build default images in experimental jobs
This commit changes seed-images jobs to build seed and overcloud
container images, each with a customisable regex.

The rocky9 job continues to build only the base image, although for both
overcloud and seed instead of seed only.

The other seed-images jobs (centos9s and ubuntu-jammy) now build all
default overcloud images. This takes longer and can fail for various
reasons unrelated to Kayobe, but this is fine since the jobs are marked
as experimental.

This is to attempt to catch bugs in the image build code, such as the
ones fixed by [1].

Note that the ubuntu-jammy job does not build the bifrost-deploy seed
image because the build is currently timing out. The centos9s job builds
it successfully.

Also update release documentation to remind developers to run
experimental jobs.

[1] https://review.opendev.org/c/openstack/kayobe/+/921012

Change-Id: Idf705d9cf41766a897444898ac31c4635b70ec16
2024-06-05 11:33:48 +02:00

39 lines
1.6 KiB
YAML

---
- hosts: primary
environment:
KAYOBE_CONFIG_SOURCE_PATH: "{{ kayobe_config_src_dir }}"
# Don't provision a seed VM - use the Zuul VM as the seed host.
KAYOBE_SEED_VM_PROVISION: 0
tasks:
- name: Ensure seed is deployed
shell:
cmd: "{{ kayobe_src_dir }}/dev/seed-deploy.sh &> {{ logs_dir }}/ansible/seed-deploy"
executable: /bin/bash
- block:
# NOTE(mgoddard): The stack user cannot read the kolla source code, which
# lives in the zuul user's home directory. Copy it to a readable location.
- name: Create a readable copy of kolla source code
become: true
copy:
src: "{{ ansible_env.PWD ~ '/' ~ zuul.projects['opendev.org/openstack/kolla'].src_dir }}"
dest: /tmp
owner: stack
group: stack
remote_src: true
- name: Ensure seed container images are built
shell:
cmd: >
source {{ kayobe_src_dir }}/dev/environment-setup.sh &&
kayobe seed container image build {{ seed_container_image_regex | default('') }} &> {{ logs_dir }}/ansible/seed-container-image-build
executable: /bin/bash
- name: Ensure overcloud container images are built
shell:
cmd: >
source {{ kayobe_src_dir }}/dev/environment-setup.sh &&
kayobe overcloud container image build {{ overcloud_container_image_regex | default('') }} &> {{ logs_dir }}/ansible/overcloud-container-image-build
executable: /bin/bash
when: build_images | bool