Add support for CentOS Stream 10

Currently CentOS Stream 10 is still under development but
support in nodepool is already needed.

Co-Authored-By: Michal Nasiadka <mnasiadka@gmail.com>
Co-Authored-By: Tony Breeds <tony@bakeyournoodle.com>
Change-Id: I382af7eaa644b43474336bf6e1b1c3c2afc648c3
This commit is contained in:
Michal Nasiadka
2025-05-26 18:21:21 +02:00
committed by Tony Breeds
parent 48f4196034
commit 7bcce11b52
19 changed files with 87 additions and 1 deletions

View File

@@ -18,7 +18,10 @@
description: |
This is the base set of stable tests
parent: dib-functests-base
nodeset: debian-bookworm
nodeset:
nodes:
- name: nested-virt-debian-bookworm
label: nested-virt-debian-bookworm
vars:
dib_functests:
- containerfile/jammy-build-succeeds
@@ -26,6 +29,7 @@
#- openeuler-minimal/22.03-LTS-build-succeeds
# Image based tests
- centos/9-stream-build-succeeds
- centos/10-stream-build-succeeds
# NOTE(rpittau) Fedora 37 is EOL, disalbing this until we move to
# Fedora 39 or more recent.
#- fedora/build-succeeds
@@ -65,6 +69,7 @@
dib_functests:
- almalinux-container/almalinux-9-aarch64-build-succeeds
- centos-minimal/9-stream-aarch64-build-succeeds
- centos-minimal/10-stream-aarch64-build-succeeds
# Disabled until it gets updated to match the version being mirrored
#- openeuler-minimal/22.03-LTS-build-succeeds
- rocky-container/rocky-9-aarch64-build-succeeds
@@ -242,6 +247,24 @@
base_element: centos-minimal
release: '9-stream'
- job:
name: dib-devstack-functional-openstack-centos-10-stream-src
description: |
Test building and booting a Centos 10 Stream image with devstack and
OpenStack.
nodeset:
nodes:
- name: controller
label: nested-virt-ubuntu-noble
parent: dib-devstack-functional-src-base
vars:
diskimage:
base_element: centos-minimal
release: '10-stream'
devstack_localrc:
LIBVIRT_CPU_MODE: custom
LIBVIRT_CPU_MODEL: Haswell
- job:
name: dib-nodepool-functional-openstack-fedora-37-containerfile-src
description: |

View File

@@ -43,6 +43,8 @@
- dib-devstack-functional-openstack-almalinux-9-containerfile-src:
voting: false
- dib-devstack-functional-openstack-centos-9-stream-src
- dib-devstack-functional-openstack-centos-10-stream-src:
voting: false
# NOTE(rpittau) Fedora 37 is EOL, moving to non-voting for the time being
# until we move to Fedora 39 or more recent.
- dib-devstack-functional-openstack-fedora-37-containerfile-src:

View File

@@ -0,0 +1 @@
Verify we can build a centos-minimal image.

View File

@@ -0,0 +1 @@
Verify we can build a centos-minimal image.

View File

@@ -0,0 +1,2 @@
block-device-efi
vm

View File

@@ -0,0 +1,10 @@
[appstream]
name=CentOS Stream 10 - AppStream
metalink=https://mirrors.centos.org/metalink?repo=centos-appstream-10-stream&arch=$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1

View File

@@ -0,0 +1,10 @@
[baseos]
name=CentOS Stream 10 - BaseOS
metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-10-stream&arch=$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
gpgcheck=1
repo_gpgcheck=0
metadata_expire=6h
countme=1
enabled=1

View File

@@ -0,0 +1 @@
Centos Stream 10 test

View File

@@ -0,0 +1,4 @@
base
block-device-mbr
epel
vm

View File

@@ -0,0 +1 @@
export DIB_RELEASE='10-stream'

View File

@@ -21,6 +21,8 @@ if [ -e "/etc/redhat-release" ]; then
DIB_DHCP_CLIENT=${DIB_DHCP_CLIENT:-dhclient}
elif [[ '8' =~ ${DIB_RELEASE} ]]; then
DIB_DHCP_CLIENT=${DIB_DHCP_CLIENT:-dhclient}
elif [[ '10' =~ ${DIB_RELEASE} ]]; then
DIB_DHCP_CLIENT=${DIB_DHCP_CLIENT:-dhcpcd}
fi
# NOTE(TheJulia): Centos 9-stream/RHEL9, appear to need to leverage the
# internal interface. See: https://storyboard.openstack.org/#!/story/2010109

View File

@@ -1,4 +1,12 @@
{
"release": {
"centos": {
"10-stream": {
"dhcp-client": "dhcpcd",
"ifupdown": ""
}
}
},
"family": {
"redhat": {
"dhcp-client": "dhclient",

View File

@@ -32,6 +32,11 @@
"37": {
"NetworkManager-initscripts-ifcfg-rh": "NetworkManager-initscripts-ifcfg-rh"
}
},
"centos": {
"10-stream": {
"dhcp-client": "dhcpcd"
}
}
},
"default": {

View File

@@ -130,6 +130,13 @@ function extract_image() {
fi
done
# in case where ROOT_LOOPDEV is not set - use BOOT_LOOPDEV for that case
# (e.g. CentOS Stream 10)
if [ -z "$ROOT_LOOPDEV" ]; then
ROOT_LOOPDEV=${BOOT_LOOPDEV}
BOOT_LOOPDEV=
fi
mkdir $WORKING/mnt
ROOT_FSTYPE=$(sudo blkid -o value -s TYPE $ROOT_LOOPDEV)
if [ "xfs" = "$ROOT_FSTYPE" ]; then

View File

@@ -3,6 +3,10 @@
"centos": {
"9-stream": {
"lsb_release": "ed hostname patch postfix tar time"
},
"10-stream": {
"lsb_release": "python3-distro ed hostname patch postfix tar time",
"dhcp-client": "dhcpcd"
}
}
},