Skip to content

Commit 91daea7

Browse files
Merge pull request #6321 from ggiguash/rhel98-ostree-release
USHIFT-6524: Switch ostree release images and scenarios to RHEL 9.8
2 parents 6d8cfbf + 6fd44a8 commit 91daea7

File tree

159 files changed

+259
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+259
-251
lines changed

test/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ rhel-9.2
277277

278278
#### Bootc Image Customization
279279

280-
Bootc images are defined by templated `containerfile` definitions.
280+
Bootc images are defined by templated `containerfile` definitions.
281281
These files are written with [golang templating syntax](https://pkg.go.dev/text/template)
282282
and executed during the image build process.
283283

@@ -608,11 +608,10 @@ The `launch_vm` function takes as input the VM name. It expects a
608608
kickstart file to already exist, and it defines a new VM configured to
609609
boot from the installer ISO and the kickstart file.
610610
611-
The `launch_vm` function also accepts two optional arguments:
612-
- The image blueprint used to create the ISO that should
613-
be used to boot the VM (default to `$DEFAULT_BOOT_BLUEPRINT`).
614-
- The name of the network used when creating the VM
615-
(defaults to `default`).
611+
The `launch_vm` function also accepts two arguments:
612+
- The mandatory image blueprint used to create the ISO that should be used
613+
to boot the VM.
614+
- The name of the network used when creating the VM (defaults to `default`).
616615
617616
#### scenario_remove_vms
618617

test/bin/scenario.sh

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ source "${SCRIPTDIR}/common.sh"
1616
# shellcheck source=test/bin/common_versions.sh
1717
source "${SCRIPTDIR}/common_versions.sh"
1818

19-
DEFAULT_BOOT_BLUEPRINT="rhel-9.6"
2019
LVM_SYSROOT_SIZE="15360"
2120
PULL_SECRET="${PULL_SECRET:-${HOME}/.pull-secret.json}"
2221
PULL_SECRET_CONTENT="$(jq -c . "${PULL_SECRET}")"
@@ -675,12 +674,11 @@ EOF
675674
# Creates a new VM using the scenario name and the vmname given to
676675
# create a unique name. Uses the boot_blueprint and network
677676
# arguments to select the ISO and networks from which to boot.
678-
# If no boot_blueprint is specified, uses DEFAULT_BOOT_BLUEPRINT.
679677
# If no network is specified, uses the "default" network.
680678
#
681679
# Usage: launch_vm \
680+
# <boot_blueprint> \
682681
# [--vmname <name>] \
683-
# [--boot_blueprint <blueprint>] \
684682
# [--network <name>[,<name>...]] \
685683
# [--vm_vcpus <vcpus>] \
686684
# [--vm_memory <memory>] \
@@ -689,35 +687,44 @@ EOF
689687
# [--no_network]
690688
#
691689
# Arguments:
692-
# [--vmname <name>]: The short name of the VM in the scenario (e.g., "host1").
693-
# [--boot_blueprint <blueprint>]: The image blueprint used to create the ISO that
694-
# should be used to boot the VM. This is _not_
695-
# necessarily the image to be installed (see
696-
# prepare_kickstart).
690+
# <boot_blueprint>: Mandatory. The name of the image blueprint
691+
# used to create the ISO that should be used
692+
# to boot the VM. This is _not_ necessarily the
693+
# image to be installed (see prepare_kickstart).
694+
# [--vmname <name>]: The short name of the VM in the scenario
695+
# (e.g., "host1").
697696
# [--network <name>[,<name>...]]: A comma-separated list for the networks used
698697
# when creating the VM. Each network entry will
699698
# create a NIC and they are repeatable.
700-
# [--no-network]: Do not configure any network attachments (and therefore no
701-
# NICs) for the VM.
702-
# [--vm_vcpus <vcpus>]: Number of vCPUs for the VM.
703-
# [--vm_memory <memory>]: Size of RAM in MB for the VM.
704-
# [--vm_disksize <disksize>]: Size of disk in GB for the VM.
705-
# [--fips]: Enable FIPS mode
706-
699+
# [--no_network]: Do not configure any network attachments (and
700+
# therefore no NICs) for the VM.
701+
# [--vm_vcpus <vcpus>]: Number of vCPUs for the VM.
702+
# [--vm_memory <memory>]: Size of RAM in MB for the VM.
703+
# [--vm_disksize <disksize>]: Size of disk in GB for the VM.
704+
# [--fips]: Enable FIPS mode for the VM.
707705
launch_vm() {
708-
# set defaults
706+
# Set default values for the optional arguments
709707
local vmname="host1"
710-
local boot_blueprint="${DEFAULT_BOOT_BLUEPRINT}"
711708
local network="default"
712709
local vm_memory=4096
713710
local vm_vcpus=2
714711
local vm_disksize=20
715712
local fips_mode=0
716713
local kernel_location="images/pxeboot"
717714

715+
# Parse the mandatory arguments
716+
local -r boot_blueprint="${1:-}"
717+
if [ -z "${boot_blueprint}" ]; then
718+
error "Boot blueprint is not set"
719+
record_junit "${vmname}" "vm-launch-args" "FAILED"
720+
exit 1
721+
fi
722+
shift
723+
724+
# Parse the optional arguments
718725
while [ $# -gt 0 ]; do
719726
case "$1" in
720-
--vmname|--boot_blueprint|--vm_vcpus|--vm_memory|--vm_disksize)
727+
--vmname|--vm_vcpus|--vm_memory|--vm_disksize)
721728
var="${1/--/}"
722729
if [ -n "$2" ] && [ "${2:0:1}" != "-" ]; then
723730
declare "${var}=$2"

test/image-blueprints/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ each layer or group under `test/image-blueprints` directory.
99
Artifacts built in this layer are cached.
1010

1111
Groups 1-to-3 enforce an ordered build chain, necessary to satisfy a mandatory
12-
layer dependency of `rhel94 os-only -> rhel94 y-2 -> rhel94 y-1`, which is needed
12+
layer dependency of `rhel9x os-only -> rhel9x y-2 -> rhel9x y-1`, which is needed
1313
for testing upgrades.
1414

1515
|Group |Build Time|Description|
1616
|------|----------|-----------|
17-
|group1| Short | RHEL 9.4 and 9.6 OS-only base layer
18-
|group2| Short | RHEL 9.4 layer with MicroShift `y-2` packages
19-
|group3| Short | RHEL 9.4 layer with MicroShift `y-1` packages
17+
|group1| Short | RHEL 9.x OS-only base layer
18+
|group2| Short | RHEL 9.x layer with MicroShift `y-2` packages
19+
|group3| Short | RHEL 9.x layer with MicroShift `y-1` packages
2020
|group4| Average | Other artifacts independent of current sources
2121

2222
> Note: Total build times are up to 30 minutes.
@@ -48,13 +48,13 @@ The artifacts are only used by periodic CI jobs.
4848
Artifacts built in this layer are cached as they depend on Brew RPM packages available only behind the VPN.
4949

5050
Groups 1-to-2 enforce an ordered build chain, necessary to satisfy a mandatory
51-
layer dependency of `rhel96 os-only -> rhel96 y-2 -> rhel96 y-1`, which is needed
51+
layer dependency of `rhel9x os-only -> rhel9x y-2 -> rhel9x y-1`, which is needed
5252
for testing upgrades.
5353

5454
|Group |Build Time|Description|
5555
|------|----------|-----------|
56-
|group1| Short | RHEL 9.6 layer with MicroShift `y-2` Brew packages
57-
|group2| Short | RHEL 9.6 layer with MicroShift `y-1` Brew packages
56+
|group1| Short | RHEL 9.x layer with MicroShift `y-2` Brew packages
57+
|group2| Short | RHEL 9.x layer with MicroShift `y-1` Brew packages
5858
|group3| Average | Brew RPM blueprints for release testing (EC, RC, z-stream, nightly, tuned)
5959
|group4| Average | Image installers for release testing (EC, RC, z-stream)
6060

test/image-blueprints/layer4-release/group3/rhel96-brew-lrel-optional.toml renamed to test/image-blueprints/layer4-release/group3/rhel98-brew-lrel-optional.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
*/ -}}
1010

11-
name = "rhel96-brew-lrel-optional"
12-
description = "A RHEL 9.6 image with latest release RPMs (EC, RC, or Z-stream): {{ .Env.BREW_LREL_RELEASE_VERSION }}"
11+
name = "rhel98-brew-lrel-optional"
12+
description = "A RHEL 9.8 image with latest release RPMs (EC, RC, or Z-stream): {{ .Env.BREW_LREL_RELEASE_VERSION }}"
1313
version = "0.0.1"
1414
modules = []
1515
groups = []
16-
distro = "rhel-96"
16+
distro = "rhel-98"
1717

1818
# Parent specification directive recognized by test/bin/build_images.sh to be
1919
# used with the '--parent' argument of 'osbuild-composer'

test/image-blueprints/layer4-release/group3/rhel96-brew-lrel-tuned.toml renamed to test/image-blueprints/layer4-release/group3/rhel98-brew-lrel-tuned.toml.disabled

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
*/ -}}
1010

11-
name = "rhel96-brew-lrel-tuned"
12-
description = "A RHEL 9.6 image with already built and released RPMs like EC, RC, or Z-stream release: {{ .Env.BREW_LREL_RELEASE_VERSION }}"
11+
name = "rhel98-brew-lrel-tuned"
12+
description = "A RHEL 9.8 image with already built and released RPMs like EC, RC, or Z-stream release: {{ .Env.BREW_LREL_RELEASE_VERSION }}"
1313
version = "0.0.1"
1414
modules = []
1515
groups = []
16-
distro = "rhel-96"
16+
distro = "rhel-98"
1717

1818
# Parent specification directive recognized by test/bin/build_images.sh to be
1919
# used with the '--parent' argument of 'osbuild-composer'

test/image-blueprints/layer4-release/group3/rhel96-brew-nightly-with-optionals.toml renamed to test/image-blueprints/layer4-release/group3/rhel98-brew-nightly-with-optionals.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
*/ -}}
1010

11-
name = "rhel-9.6-microshift-brew-optionals-4.{{ .Env.MINOR_VERSION}}-nightly"
12-
description = "A RHEL 9.6 image with already built and released RPMs like EC, RC, or Z-stream release: {{ .Env.BREW_NIGHTLY_RELEASE_VERSION }}"
11+
name = "rhel-9.8-microshift-brew-optionals-4.{{ .Env.MINOR_VERSION}}-nightly"
12+
description = "A RHEL 9.8 image with already built and released RPMs like EC, RC, or Z-stream release: {{ .Env.BREW_NIGHTLY_RELEASE_VERSION }}"
1313
version = "0.0.1"
1414
modules = []
1515
groups = []
16-
distro = "rhel-96"
16+
distro = "rhel-98"
1717

1818
# Parent specification directive recognized by test/bin/build_images.sh to be
1919
# used with the '--parent' argument of 'osbuild-composer'

test/image-blueprints/layer4-release/group4/rhel96-brew-lrel-optional.image-installer renamed to test/image-blueprints/layer4-release/group4/rhel98-brew-lrel-optional.image-installer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{- if and (env.Getenv "BREW_LREL_RELEASE_VERSION" "") (env.Getenv "BREW_Y1_RELEASE_VERSION" "") -}}
2-
rhel96-brew-lrel-optional
2+
rhel98-brew-lrel-optional
33
{{- end -}}

test/scenarios-bootc/periodics/el102-src@optional.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ scenario_create_vms() {
1616
fi
1717
LVM_SYSROOT_SIZE=20480 prepare_kickstart host1 kickstart-bootc.ks.template rhel102-bootc-source-optionals
1818
# Three nics - one for sriov, one for macvlan, another for ipvlan (they cannot enslave the same interface)
19-
launch_vm --boot_blueprint rhel102-bootc --network "${networks}" --vm_disksize 25
19+
launch_vm rhel102-bootc --network "${networks}" --vm_disksize 25
2020
}
2121

2222
scenario_remove_vms() {

test/scenarios-bootc/periodics/el102-src@standard-suite1.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
scenario_create_vms() {
66
prepare_kickstart host1 kickstart-bootc.ks.template rhel102-bootc-source
7-
launch_vm --boot_blueprint rhel102-bootc
7+
launch_vm rhel102-bootc
88
}
99

1010
scenario_remove_vms() {

test/scenarios-bootc/periodics/el102-src@standard-suite2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
scenario_create_vms() {
66
prepare_kickstart host1 kickstart-bootc.ks.template rhel102-bootc-source
7-
launch_vm --boot_blueprint rhel102-bootc
7+
launch_vm rhel102-bootc
88
}
99

1010
scenario_remove_vms() {

0 commit comments

Comments
 (0)