Skip to content

Commit 12828ea

Browse files
authored
Merge pull request #743 from henrywang/cs10
test: add centos stream 10 rpm build and e2e test
2 parents bac2231 + a657b76 commit 12828ea

File tree

5 files changed

+32
-17
lines changed

5 files changed

+32
-17
lines changed

.packit.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
4444
- centos-stream-9-aarch64
4545
- centos-stream-9-ppc64le
4646
- centos-stream-9-s390x
47+
- centos-stream-10-x86_64
48+
- centos-stream-10-aarch64
49+
- centos-stream-10-ppc64le
50+
- centos-stream-10-s390x
4751
- fedora-40-x86_64
4852
- fedora-40-aarch64
4953
- fedora-40-ppc64le
@@ -65,20 +69,24 @@ jobs:
6569
skip_build: true
6670
identifier: integration-test
6771

72+
# To avoid https://issues.redhat.com/browse/TFT-2691
73+
# x86_64 tf runner is not enough now
6874
- job: tests
6975
trigger: pull_request
7076
targets:
7177
- centos-stream-9-x86_64
7278
- centos-stream-9-aarch64
79+
- centos-stream-10-aarch64
7380
- fedora-40-x86_64
7481
tmt_plan: /to-existing-root
7582
identifier: e2e-test-to-existing-root
7683

7784
- job: tests
7885
trigger: pull_request
7986
targets:
80-
- centos-stream-9-x86_64
8187
- centos-stream-9-aarch64
88+
- centos-stream-10-x86_64
89+
- centos-stream-10-aarch64
8290
- fedora-40-aarch64
8391
tmt_plan: /to-disk
8492
identifier: e2e-test-to-disk

plans/e2e.fmf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ adjust:
1111
virtualization:
1212
is-supported: true
1313
prepare:
14-
- how: shell
15-
script: |
16-
source /etc/os-release
17-
if [[ "$ID" == "centos" ]]; then
18-
# EPEL for genisoimage
19-
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
20-
fi
2114
- how: install
2215
package:
2316
- ansible-core
@@ -30,7 +23,7 @@ prepare:
3023
- qemu-kvm
3124
- libvirt
3225
- virt-install
33-
- genisoimage
26+
- xorriso
3427
- how: shell
3528
script: ansible-galaxy collection install https://ansible-collection.s3.amazonaws.com/ansible-posix-1.5.4.tar.gz https://ansible-collection.s3.amazonaws.com/community-general-8.5.0.tar.gz
3629
execute:

tests/e2e/bootc-install.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,20 @@ source /etc/os-release
4141
case ""${ID}-${VERSION_ID}"" in
4242
"centos-9")
4343
TEST_OS="centos-stream-9"
44-
TIER1_IMAGE_URL="quay.io/centos-bootc/centos-bootc-dev:stream9"
44+
TIER1_IMAGE_URL="quay.io/centos-bootc/centos-bootc:stream9"
4545
SSH_USER="cloud-user"
4646
REDHAT_VERSION_ID="9"
4747
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
4848
;;
49+
"centos-10")
50+
TEST_OS="centos-stream-10"
51+
TIER1_IMAGE_URL="quay.io/centos-bootc/centos-bootc:stream10"
52+
SSH_USER="cloud-user"
53+
REDHAT_VERSION_ID="10"
54+
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
55+
# workaround CS10 libvirt selinux policy issue https://issues.redhat.com/browse/RHEL-46893
56+
sudo setenforce 0
57+
;;
4958
"fedora-"*)
5059
TEST_OS="fedora-${VERSION_ID}"
5160
TIER1_IMAGE_URL="quay.io/fedora/fedora-bootc:${VERSION_ID}"
@@ -120,7 +129,7 @@ kargs = ["mitigations=on", "nosmt"]
120129
EOF
121130
RUN mkdir -p /usr/lib/bootc/kargs.d
122131
RUN cat <<EOF >> /usr/lib/bootc/kargs.d/01-console.toml
123-
kargs = ["systemd.unified_cgroup_hierarchy=0","console=ttyS0","panic=0"]
132+
kargs = ["console=ttyS0","panic=0"]
124133
EOF
125134
REALEOF
126135

@@ -254,7 +263,7 @@ ansible-playbook -v \
254263
-e test_os="$TEST_OS" \
255264
-e bootc_image="$TEST_IMAGE_URL" \
256265
-e image_label_version_id="$REDHAT_VERSION_ID" \
257-
-e kargs="mitigations=on,nosmt,systemd.unified_cgroup_hierarchy=0,console=ttyS0,panic=0" \
266+
-e kargs="mitigations=on,nosmt,console=ttyS0,panic=0" \
258267
playbooks/check-system.yaml
259268

260269
# Prepare upgrade containerfile

tests/e2e/playbooks/check-system.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,16 @@
218218
command: findmnt -r -o SOURCE -n /
219219
register: result_root_mount_point
220220

221+
# overlay: as default
222+
# none: workaround issue https://gitlab.com/redhat/centos-stream/containers/bootc/-/issues/301
223+
# composefs: issue has been fixed by https://github.com/containers/composefs/pull/303
221224
- name: / mount point checking
222225
block:
223226
- assert:
224227
that:
225-
- result_root_mount_point.stdout == "overlay"
226-
fail_msg: "/ does not mount with overlay"
227-
success_msg: "/ mounts with overlay"
228+
- result_root_mount_point.stdout == "overlay" or result_root_mount_point.stdout == "none" or result_root_mount_point.stdout == "composefs"
229+
fail_msg: "/ does not mount with overlay or none or composefs"
230+
success_msg: "/ mounts with overlay or none or composefs"
228231
always:
229232
- set_fact:
230233
total_counter: "{{ total_counter | int + 1 }}"
@@ -356,7 +359,7 @@
356359
register: result_selinux_denied
357360
become: true
358361
ignore_errors: true
359-
362+
360363
# case: check karg
361364
- name: grep for kargs
362365
shell: cat /proc/cmdline | grep {{item}}

tests/e2e/playbooks/deploy-libvirt.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
boot_args: ""
1515
os_variant:
1616
centos-stream-9: centos-stream9
17+
centos-stream-10: centos-stream9
1718
fedora-40: fedora-unknown
1819
fedora-41: fedora-unknown
1920

@@ -116,7 +117,8 @@
116117
# Then the --cloud-init will be dropped when start after system reset
117118
- name: Generate seed.iso for NoCloud cloud-init
118119
command: |
119-
genisoimage -output "{{ image_path }}/seed.iso" \
120+
xorriso -as mkisofs -input-charset utf8 \
121+
-o "{{ image_path }}/seed.iso" \
120122
-volid cidata \
121123
-joliet \
122124
-rock \

0 commit comments

Comments
 (0)