system-config/zuul.d/system-config-roles.yaml
Clark Boylan b5148387ba Upgrade and reboot test nodes before openafs installation
CentOS ARM in particular complains bitterly if we try to upgrade openafs
on it and the kernel it is running is stale compared to packges in the
mirrors. This happens if our images have lagged behind upstream package
updates. To mitigate this we upgrade and reboot the system prior to
testing openafs installation.

To make arm64 reboots onto the new kernel reliable we manually run
grubby --set-default to explicitly set the default kernel to boot to the
newly installed kernel. Then we remove the old kernel with grubby and
finally generate a new grub config. This is necessary likely due to:

  https://bugzilla.redhat.com/show_bug.cgi?id=2032680

Note we also do the reboot (but not grub(by) dance) on Debuntu for
symmetry.

Change-Id: If87a0b1d7dc063ac9122d85f65b6fe1c129d2052
2024-11-21 17:51:56 -08:00

238 lines
6.7 KiB
YAML

# Role integration jobs. These test the top-level generic roles/*
# under Zuul. The range of platforms should be the same as those for
# openstack-zuul-jobs.
#
# NOTE(ianw): 2018-08 have left off Fedora & OpenSUSE because
# no roles currently run on them.
- job:
name: system-config-zuul-role-integration
description: Test roles provided by system-config with Zuul.
abstract: true
parent: base
pre-run: roles-test/pre.yaml
run: roles-test/base.yaml
post-run: roles-test/post.yaml
files:
- roles/puppet-install
- roles/openafs-client
- roles/kerberos-client
- roles-test/
vars:
zuul_copy_output: "{{ copy_output | combine(host_copy_output | default({})) }}"
stage_dir: "{{ ansible_user_dir }}/zuul-output"
copy_output:
'/var/log/syslog': logs_txt
'/var/log/messages': logs_txt
'/var/log/openafs': logs
# for build logs
'/var/lib/dkms-make-logs': logs
- job:
name: system-config-zuul-role-integration-bionic
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-bionic
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-bionic-arm64
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-bionic-arm64
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-focal
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-focal
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-jammy
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-jammy
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-noble
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-noble
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-focal-arm64
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-focal-arm64
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-jammy-arm64
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-jammy-arm64
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-noble-arm64
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: ubuntu-noble-arm64
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-debian-bullseye
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: debian-bullseye
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-debian-bookworm
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: debian-bookworm
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-debian-bullseye-arm64
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: debian-bullseye-arm64
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-debian-bookworm-arm64
parent: system-config-zuul-role-integration
voting: false
nodeset:
nodes:
- name: base
label: debian-bookworm-arm64
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-centos-9-stream
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: centos-9-stream
groups:
- name: openafs
nodes:
- base
- job:
name: system-config-zuul-role-integration-centos-9-stream-arm64
parent: system-config-zuul-role-integration
nodeset:
nodes:
- name: base
label: centos-9-stream-arm64
groups:
- name: openafs
nodes:
- base
- project-template:
name: system-config-zuul-role-integration
check:
jobs:
- system-config-zuul-role-integration-bionic
- system-config-zuul-role-integration-bionic-arm64
- system-config-zuul-role-integration-focal
- system-config-zuul-role-integration-focal-arm64
- system-config-zuul-role-integration-jammy
- system-config-zuul-role-integration-jammy-arm64
- system-config-zuul-role-integration-noble
## Non-voting until https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069781
## is fixed and makes it into Debian/Ubuntu
- system-config-zuul-role-integration-noble-arm64:
voting: false
- system-config-zuul-role-integration-debian-bullseye
- system-config-zuul-role-integration-debian-bullseye-arm64
- system-config-zuul-role-integration-debian-bookworm
- system-config-zuul-role-integration-debian-bookworm-arm64
- system-config-zuul-role-integration-centos-9-stream
- system-config-zuul-role-integration-centos-9-stream-arm64
gate:
jobs:
- system-config-zuul-role-integration-bionic
- system-config-zuul-role-integration-bionic-arm64
- system-config-zuul-role-integration-focal
- system-config-zuul-role-integration-focal-arm64
- system-config-zuul-role-integration-jammy
- system-config-zuul-role-integration-jammy-arm64
- system-config-zuul-role-integration-noble
## Disabled until https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069781
## is fixed and makes it into Debian/Ubuntu
# - system-config-zuul-role-integration-noble-arm64
- system-config-zuul-role-integration-debian-bullseye
- system-config-zuul-role-integration-debian-bullseye-arm64
- system-config-zuul-role-integration-debian-bookworm
- system-config-zuul-role-integration-debian-bookworm-arm64
- system-config-zuul-role-integration-centos-9-stream
- system-config-zuul-role-integration-centos-9-stream-arm64