Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# {{- if env.Getenv "CURRENT_RELEASE_VERSION" "" -}}
# Note: This comment makes templating add a new line before the code
FROM localhost/rhel100-test-agent:latest
FROM localhost/rhel102-test-agent:latest

# Copy repository configuration
COPY ./bootc-images/microshift-fast-datapath-rhel9.repo ./bootc-images/microshift-crel.repo ./bootc-images/microshift-rhocp-y.repo \
COPY ./bootc-images/microshift-fast-datapath-rhel9.repo ./bootc-images/microshift-crel.repo ./bootc-images/microshift-rhocp-y.repo ./bootc-images/microshift-rhocp-y1.repo \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding rhocp-y1 repos? These should not be required here.

/etc/yum.repos.d/

# Print repository configuration contents.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# {{- if env.Getenv "CURRENT_RELEASE_VERSION" "" -}}
# Note: This comment makes templating add a new line before the code
FROM localhost/rhel100-test-agent:latest
FROM localhost/rhel102-test-agent:latest

# Copy repository configuration
COPY ./bootc-images/microshift-fast-datapath-rhel9.repo ./bootc-images/microshift-crel.repo ./bootc-images/microshift-rhocp-y.repo \
COPY ./bootc-images/microshift-fast-datapath-rhel9.repo ./bootc-images/microshift-crel.repo ./bootc-images/microshift-rhocp-y.repo ./bootc-images/microshift-rhocp-y1.repo \
/etc/yum.repos.d/

# Print repository configuration contents.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# {{- if env.Getenv "CURRENT_RELEASE_VERSION" "" -}}
# Note: This comment makes templating add a new line before the code
FROM localhost/rhel100-test-agent:latest
FROM localhost/rhel102-test-agent:latest

# Copy repository configuration
COPY ./bootc-images/microshift-fast-datapath-rhel9.repo ./bootc-images/microshift-crel.repo ./bootc-images/microshift-rhocp-y.repo \
COPY ./bootc-images/microshift-fast-datapath-rhel9.repo ./bootc-images/microshift-crel.repo ./bootc-images/microshift-rhocp-y.repo ./bootc-images/microshift-rhocp-y1.repo \
/etc/yum.repos.d/

# Print repository configuration contents.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM localhost/rhel100-test-agent:latest
FROM localhost/rhel102-test-agent:latest

# Build arguments
ARG USHIFT_RPM_REPO_NAME=microshift-local
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM localhost/rhel100-bootc-source:latest
FROM localhost/rhel102-bootc-source:latest

# Build arguments
ARG USHIFT_RPM_REPO_NAME=microshift-local
Expand Down Expand Up @@ -29,5 +29,6 @@ RUN dnf repoinfo --enabled && \
dnf clean all

# Prepare system for testing Generic Device Plugin
COPY --chmod=755 ./bootc-images/build-serialsim.sh /tmp/build-serialsim.sh
RUN /tmp/build-serialsim.sh && rm -f /tmp/build-serialsim.sh
# Temporarily disable until we can get the correct kernel-devel package
# COPY --chmod=755 ./bootc-images/build-serialsim.sh /tmp/build-serialsim.sh
# RUN /tmp/build-serialsim.sh && rm -f /tmp/build-serialsim.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# {{- if env.Getenv "BREW_LREL_RELEASE_VERSION" "" -}}
# Note: This comment makes templating add a new line before the code
FROM localhost/rhel100-test-agent:latest
FROM localhost/rhel102-test-agent:latest

# Build arguments
ARG USHIFT_RPM_REPO_NAME=microshift-brew
Expand Down Expand Up @@ -50,6 +50,7 @@ RUN firewall-offline-cmd --zone=public --add-port=22/tcp && \
firewall-offline-cmd --zone=public --add-port=30000-32767/udp

# Prepare system for testing Generic Device Plugin
COPY --chmod=755 ./bootc-images/build-serialsim.sh /tmp/build-serialsim.sh
RUN /tmp/build-serialsim.sh && rm -f /tmp/build-serialsim.sh
# Temporarily disable until we can get the kernel-devel package
# COPY --chmod=755 ./bootc-images/build-serialsim.sh /tmp/build-serialsim.sh
# RUN /tmp/build-serialsim.sh && rm -f /tmp/build-serialsim.sh
# {{- end -}}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# {{- if env.Getenv "BREW_VERSION" "" -}}
# Note: This comment makes templating add a new line before the code
FROM localhost/rhel100-test-agent:latest
FROM localhost/rhel102-test-agent:latest

# Build arguments
ARG USHIFT_RPM_REPO_NAME=microshift-brew
Expand Down
8 changes: 8 additions & 0 deletions test/package-sources-bootc/rhel102-mirror.repo
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ enabled = 1
sslverify = false
gpgcheck = 0
skip_if_unavailable = false

[rhel-10.2-early-kernel]
name = rhel-10.2-early-kernel
baseurl = http://localhost:{{ .Env.WEB_SERVER_PORT }}/ocp-mirror/reposync/4.22{{ if eq .Env.UNAME_M "aarch64" }}_aarch64{{ end }}/rhel-102-early-kernel
enabled = 1
sslverify = false
gpgcheck = 0
skip_if_unavailable = false
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ scenario_create_vms() {
if [[ "${UNAME_M}" =~ aarch64 ]]; then
networks="${VM_MULTUS_NETWORK},${VM_MULTUS_NETWORK}"
fi
LVM_SYSROOT_SIZE=20480 prepare_kickstart host1 kickstart-bootc.ks.template rhel100-bootc-source-optionals
LVM_SYSROOT_SIZE=20480 prepare_kickstart host1 kickstart-bootc.ks.template rhel102-bootc-source-optionals
# Three nics - one for sriov, one for macvlan, another for ipvlan (they cannot enslave the same interface)
launch_vm --boot_blueprint rhel100-bootc --network "${networks}" --vm_disksize 25
launch_vm --boot_blueprint rhel102-bootc --network "${networks}" --vm_disksize 25
}

scenario_remove_vms() {
Expand All @@ -29,6 +29,8 @@ scenario_run_tests() {
if [[ "${UNAME_M}" =~ aarch64 ]]; then
skip_args="--skip sriov"
fi
# Skip generic device plugin on RHEL 10 until we can get the correct kernel-devel package.
skip_args+=" --skip generic-device-plugin"
# shellcheck disable=SC2086
run_tests host1 \
--variable "PROMETHEUS_HOST:$(hostname)" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Sourced from scenario.sh and uses functions defined there.

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel100-bootc-source
launch_vm --boot_blueprint rhel100-bootc
prepare_kickstart host1 kickstart-bootc.ks.template rhel102-bootc-source
launch_vm --boot_blueprint rhel102-bootc
}

scenario_remove_vms() {
Expand All @@ -13,6 +13,6 @@ scenario_remove_vms() {

scenario_run_tests() {
run_tests host1 \
--variable "EXPECTED_OS_VERSION:10.0" \
--variable "EXPECTED_OS_VERSION:10.2" \
suites/standard1/
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Sourced from scenario.sh and uses functions defined there.

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel100-bootc-source
launch_vm --boot_blueprint rhel100-bootc
prepare_kickstart host1 kickstart-bootc.ks.template rhel102-bootc-source
launch_vm --boot_blueprint rhel102-bootc
}

scenario_remove_vms() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scenario_remove_vms() {

scenario_run_tests() {
run_tests host1 \
--variable "TARGET_REF:rhel100-bootc-source" \
--variable "TARGET_REF:rhel102-bootc-source" \
--variable "BOOTC_REGISTRY:${MIRROR_REGISTRY_URL}" \
suites/upgrade/upgrade-successful.robot
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scenario_remove_vms() {

scenario_run_tests() {
run_tests host1 \
--variable "TARGET_REF:rhel100-bootc-source" \
--variable "TARGET_REF:rhel102-bootc-source" \
--variable "BOOTC_REGISTRY:${MIRROR_REGISTRY_URL}" \
suites/upgrade/upgrade-successful.robot
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ scenario_remove_vms() {

scenario_run_tests() {
run_tests host1 \
--variable "TARGET_REF:rhel100-bootc-source" \
--variable "TARGET_REF:rhel102-bootc-source" \
--variable "BOOTC_REGISTRY:${MIRROR_REGISTRY_URL}" \
suites/upgrade/upgrade-successful.robot
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ scenario_run_tests() {
exit_if_image_not_found "${start_image}"

run_tests host1 \
--variable "TARGET_REF:rhel100-bootc-source" \
--variable "TARGET_REF:rhel102-bootc-source" \
--variable "BOOTC_REGISTRY:${MIRROR_REGISTRY_URL}" \
suites/upgrade/upgrade-successful.robot
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ scenario_remove_vms() {

scenario_run_tests() {
run_tests host1 \
--variable "TARGET_REF:rhel100-bootc-source" \
--variable "TARGET_REF:rhel102-bootc-source" \
--variable "BOOTC_REGISTRY:${MIRROR_REGISTRY_URL}" \
suites/upgrade/upgrade-successful.robot
}
19 changes: 19 additions & 0 deletions test/scenarios-bootc/presubmits/el98-src@el102-src@upgrade-ok.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Sourced from scenario.sh and uses functions defined there.

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template rhel98-bootc-source
launch_vm --boot_blueprint rhel98-bootc
}

scenario_remove_vms() {
remove_vm host1
}

scenario_run_tests() {
run_tests host1 \
--variable "TARGET_REF:rhel102-bootc-source" \
--variable "BOOTC_REGISTRY:${MIRROR_REGISTRY_URL}" \
suites/upgrade/upgrade-successful.robot
}