Make the debian job voting and start publishing debian images

With only 270MiB in size, the Debian images are likely candidates
for our future default images. Given that CentOS Stream 8 images
are nearly 500MiB in size, Debian may be our only path forward.

Enable installing firmware on Debian images to make them suitable
for bare metal installations.

Do not try to install biosdevname on non-RH systems.

Change-Id: I2c2a71c4afd0cd534961317b7fe9d3fb5d007d24
This commit is contained in:
Dmitry Tantsur 2020-12-15 15:10:50 +01:00
parent bf698221c3
commit db238b9c99
7 changed files with 69 additions and 4 deletions

View File

@ -1,4 +1,3 @@
biosdevname:
ethtool:
fio:
hdparm:
@ -8,3 +7,6 @@ pciutils:
sdparm:
smartmontools:
sysbench:
biosdevname:
when: IPA_DISTRO_FAMILY = rh

View File

@ -0,0 +1,8 @@
# IPA is built with non-free firmware by default.
export DIB_DEBIAN_COMPONENTS=${DIB_DEBIAN_COMPONENTS:-main,contrib,non-free}
if [[ $DIB_DEBIAN_COMPONENTS =~ non-free ]]; then
export IPA_DEBIAN_NONFREE=true
else
export IPA_DEBIAN_NONFREE=false
fi

View File

@ -36,6 +36,23 @@ linux-firmware:
phase: post-install.d
when: IPA_DISTRO_FAMILY = rh
firmware-linux-free:
when: DISTRO_NAME = debian
firmware-misc-nonfree:
when:
- DISTRO_NAME = debian
- IPA_DEBIAN_NONFREE = true
intel-microcode:
arch: x86_64
when:
- DISTRO_NAME = debian
- IPA_DEBIAN_NONFREE = true
amd64-microcode:
arch: x86_64
when:
- DISTRO_NAME = debian
- IPA_DEBIAN_NONFREE = true
# Packages that should not normally be present on IPA images
cloud-init:
phase: post-install.d

View File

@ -0,0 +1,13 @@
---
fixes:
- |
Free firmware is now installed by default on Debian DIB builds.
- |
No longer tries to install ``biosdevname`` on non Red Hat systems
(dropped from Ubuntu after Bionic, never present in Debian).
upgrade:
- |
Non-free firmware is now installed by default on Debian DIB builds.
Change the available repositories to disable:
export DIB_DEBIAN_COMPONENTS=main

View File

@ -12,6 +12,13 @@
- image_distro in ["centos-minimal", "centos"]
- not image_target_name
- name: Generate a nice target name for Debian
set_fact:
image_target_name: debian
when:
- image_distro in ["debian-minimal", "debian"]
- not image_target_name
- name: Generate image name
set_fact:
image_name: ipa-{{ image_target_name | default(image_distro, true) }}-{{ ipa_branch_path }}

View File

@ -39,6 +39,15 @@
image_distro: 'centos'
image_release: 8
- job:
name: ironic-python-agent-build-image-dib-debian
parent: ironic-python-agent-build-image-base
required-projects:
- openstack/diskimage-builder
vars:
image_type: 'dib'
image_distro: 'debian-minimal'
- job:
name: ironic-python-agent-check-image-base
parent: base
@ -119,7 +128,13 @@
- openstack/diskimage-builder
vars:
image_type: 'dib'
image_distro: 'debian'
image_distro: 'debian-minimal'
- job:
name: ironic-python-agent-check-image-dib-debian-extra
parent: ironic-python-agent-check-image-dib-debian
vars:
extra_elements: ["extra-hardware"]
- job:
name: ironic-python-agent-check-image-dib-ubuntu

View File

@ -13,13 +13,13 @@
- ironic-python-agent-check-image-dib-centos8
- ironic-python-agent-check-image-dib-centos8-extra
- ironic-python-agent-check-image-dib-centos7
- ironic-python-agent-check-image-dib-debian
- ironic-python-agent-check-image-dib-debian-extra
# Non-voting jobs
- ironic-python-agent-check-image-dib-centos7-python3:
voting: false
- ironic-python-agent-check-image-dib-fedora:
voting: false
- ironic-python-agent-check-image-dib-debian:
voting: false
- ironic-python-agent-check-image-dib-ubuntu:
voting: false
- ipa-tempest-wholedisk-bios-ipmi-direct-dib-src:
@ -40,8 +40,11 @@
- ironic-python-agent-check-image-dib-centos8
- ironic-python-agent-check-image-dib-centos8-extra
- ironic-python-agent-check-image-dib-centos7
- ironic-python-agent-check-image-dib-debian
- ironic-python-agent-check-image-dib-debian-extra
post:
jobs:
- publish-openstack-python-branch-tarball
- ironic-python-agent-build-image-tinyipa
- ironic-python-agent-build-image-dib-centos8
- ironic-python-agent-build-image-dib-debian