Build ironic-python-agent DIB image with CentOS Stream 10

Few changes to enable building IPA ramdisk using CS10

Change-Id: I82da3cd9cf5c4d5e2d924426ff91c41c457c36a6
Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
This commit is contained in:
Riccardo Pittau
2025-05-27 11:09:26 +02:00
parent e06a6cf64c
commit 99fb497cb7
7 changed files with 53 additions and 4 deletions

View File

@@ -20,4 +20,4 @@ doing a source-based installation:
install when ``DIB_IPA_HARDWARE_PACKAGE`` is unset. If unset, the latest
version will be installed.
* ``DIB_IPA_HARDWARE_RDO`` set to ``0`` to prevent the latest RDO package repositories
being installed on CentOS-9-Stream (ignored when ``DIB_YUM_REPO_CONF`` is set).
being installed on CentOS Stream (ignored when ``DIB_YUM_REPO_CONF`` is set).

View File

@@ -1,5 +1,5 @@
if [[ "${DISTRO_NAME}${DIB_RELEASE}" =~ "centos9" ]]; then
if [[ "${DISTRO_NAME}" =~ "centos" ]]; then
if [ -n "${DIB_YUM_REPO_CONF:-}" ] ; then
# Always disable if DIB_YUM_REPO_CONF is defined
@@ -9,6 +9,6 @@ if [[ "${DISTRO_NAME}${DIB_RELEASE}" =~ "centos9" ]]; then
export DIB_IPA_HARDWARE_RDO=${DIB_IPA_HARDWARE_RDO:-1}
fi
else
# Always disable if not centos-9
# Always disable if not centos
export DIB_IPA_HARDWARE_RDO=0
fi

View File

@@ -5,5 +5,6 @@ set -eux
set -o pipefail
if [ ${DIB_IPA_HARDWARE_RDO:-0} -ne 0 ]; then
curl -o /etc/yum.repos.d/dlrn-deps.repo https://trunk.rdoproject.org/centos9-master/dlrn-deps.repo
curl -o /etc/yum.repos.d/dlrn-deps.repo https://trunk.rdoproject.org/${DISTRO_NAME}${DIB_RELEASE}-master/dlrn-deps.repo
fi

View File

@@ -1,3 +1,4 @@
epel
ironic-ramdisk-base
dhcp-all-interfaces
ibft-interfaces

View File

@@ -0,0 +1,5 @@
---
features:
- |
Ironic python agent builder now supports building ironic-python
agent ramdisk using CentOS Stream 10

View File

@@ -27,6 +27,22 @@
image_release: '9-stream'
image_target_name: 'centos9'
# NOTE(rpittau): using nested virt nodes to ensure EL10 hw support
- job:
name: ironic-python-agent-build-image-dib-centos10
nodeset:
nodes:
- name: nested-virt-ubuntu-noble
label: nested-virt-ubuntu-noble
parent: ironic-python-agent-build-image-base
required-projects:
- openstack/diskimage-builder
vars:
image_type: 'dib'
image_distro: 'centos'
image_release: '10-stream'
image_target_name: 'centos10'
- job:
name: ironic-python-agent-build-image-dib-debian
parent: ironic-python-agent-build-image-base
@@ -71,12 +87,34 @@
image_release: '9-stream'
image_target_name: centos9
# NOTE(rpittau): using nested virt nodes to ensure EL10 hw support
- job:
name: ironic-python-agent-check-image-dib-centos10
nodeset:
nodes:
- name: nested-virt-ubuntu-noble
label: nested-virt-ubuntu-noble
parent: ironic-python-agent-check-image-base
required-projects:
- openstack/diskimage-builder
vars:
image_type: 'dib'
image_distro: 'centos'
image_release: '10-stream'
image_target_name: centos10
- job:
name: ironic-python-agent-check-image-dib-centos9-extra
parent: ironic-python-agent-check-image-dib-centos9
vars:
extra_elements: ["extra-hardware"]
- job:
name: ironic-python-agent-check-image-dib-centos10-extra
parent: ironic-python-agent-check-image-dib-centos10
vars:
extra_elements: ["extra-hardware"]
- job:
name: ironic-python-agent-check-image-dib-debian
parent: ironic-python-agent-check-image-base

View File

@@ -9,6 +9,8 @@
- ironic-standalone-ipa-src
- ironic-python-agent-check-image-dib-centos9
- ironic-python-agent-check-image-dib-centos9-extra
- ironic-python-agent-check-image-dib-centos10
- ironic-python-agent-check-image-dib-centos10-extra
- ironic-python-agent-check-image-dib-debian
- ironic-python-agent-check-image-dib-debian-arm64
- ironic-python-agent-check-image-dib-debian-extra
@@ -31,6 +33,8 @@
- ironic-standalone-ipa-src
- ironic-python-agent-check-image-dib-centos9
- ironic-python-agent-check-image-dib-centos9-extra
- ironic-python-agent-check-image-dib-centos10
- ironic-python-agent-check-image-dib-centos10-extra
- ironic-python-agent-check-image-dib-debian
- ironic-python-agent-check-image-dib-debian-arm64
- ironic-python-agent-check-image-dib-debian-extra