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
changes/58/767158/5
Dmitry Tantsur 2 years ago
parent bf698221c3
commit db238b9c99
  1. 4
      dib/extra-hardware/package-installs.yaml
  2. 8
      dib/ironic-python-agent-ramdisk/environment.d/01-debian-ipa.bash
  3. 17
      dib/ironic-python-agent-ramdisk/package-installs.yaml
  4. 13
      releasenotes/notes/debian-firmware-1927601ebb779bc4.yaml
  5. 7
      roles/ipa-build-dib-image/tasks/main.yaml
  6. 17
      zuul.d/ironic-python-agent-builder-jobs.yaml
  7. 7
      zuul.d/project.yaml

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

@ -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

@ -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

@ -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

@ -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 }}

@ -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

@ -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

Loading…
Cancel
Save