Add Rocky Linux 10 support to rocky-container element

Depends-On: https://review.opendev.org/c/opendev/glean/+/953320
Depends-On: https://review.opendev.org/c/opendev/glean/+/953276

Change-Id: Ida2d4f9af20229d648007995fa20a1242751651d
This commit is contained in:
Michal Nasiadka
2025-06-13 08:23:41 +02:00
parent 7bcce11b52
commit 1dd52eea26
9 changed files with 52 additions and 1 deletions

View File

@@ -73,6 +73,7 @@
# 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
- rocky-container/rocky-10-aarch64-build-succeeds
#
# Build and boot functional tests
@@ -340,6 +341,25 @@
base_element: rocky-container
release: '9'
- job:
name: dib-devstack-functional-openstack-rockylinux-10-containerfile-src
description: |
Test building and booting a Rocky Linux image from a
containerfile with Nodepool and OpenStack (using released
libraries)
nodeset:
nodes:
- name: controller
label: nested-virt-ubuntu-noble
parent: dib-devstack-functional-src-base
vars:
diskimage:
base_element: rocky-container
release: '10'
devstack_localrc:
LIBVIRT_CPU_MODE: custom
LIBVIRT_CPU_MODEL: Haswell
- job:
name: dib-nodepool-functional-openstack-ubuntu-xenial-src
description: |

View File

@@ -53,6 +53,8 @@
voting: false
- dib-devstack-functional-openstack-rockylinux-9-containerfile-src:
voting: false
- dib-devstack-functional-openstack-rockylinux-10-containerfile-src:
voting: false
- dib-devstack-functional-openstack-ubuntu-xenial-src
- dib-devstack-functional-openstack-ubuntu-bionic-src
- dib-devstack-functional-openstack-ubuntu-focal-src

View File

@@ -5,6 +5,12 @@
"dhcp-client": "dhcpcd",
"ifupdown": ""
}
},
"rocky": {
"10": {
"dhcp-client": "dhcpcd",
"ifupdown": ""
}
}
},
"family": {

View File

@@ -0,0 +1,14 @@
FROM quay.io/rockylinux/rockylinux:10
RUN dnf group install -y 'Minimal Install' --allowerasing && \
dnf install -y findutils util-linux sudo python3 NetworkManager \
NetworkManager-config-server curl libcurl --allowerasing
RUN systemctl unmask console-getty.service dev-hugepages.mount \
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
systemd-remount-fs.service
# /etc/machine-id needs to be populated for /bin/kernel-install to
# correctly copy kernels into /boot. We will clear this out in the
# final image.
RUN systemd-machine-id-setup

View File

@@ -0,0 +1 @@
Verify a Rocky 10 aarch64 image

View File

@@ -6,7 +6,7 @@ fi
if [[ (${DISTRO_NAME} == "almalinux" || ${DISTRO_NAME} == "rocky") && $DIB_RELEASE > 7 ]] || [[ ${DISTRO_NAME} == "fedora" ]]; then
if [[ $DIB_SIMPLE_INIT_NETWORKMANAGER == 0 ]]; then
echo "simple-init only supports NetworkManager mode on Fedora and AlmaLinux/CentOS/Rocky 8 & 9"
echo "simple-init only supports NetworkManager mode on Fedora and AlmaLinux/CentOS/Rocky 8/9/10"
exit 1
fi
fi

View File

@@ -37,6 +37,11 @@
"10-stream": {
"dhcp-client": "dhcpcd"
}
},
"rocky": {
"10": {
"dhcp-client": "dhcpcd"
}
}
},
"default": {