Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 42423d4

Browse files
committed
test: bump to Fedora 36
Fedora 34 is EOL.
1 parent 5936c80 commit 42423d4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/start-kubernetes.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ case ${TEST_DISTRO} in
7171
fedora)
7272
CLOUD_USER=${CLOUD_USER:-fedora}
7373
EFI=${EFI:-false}
74-
TEST_DISTRO_VERSION=${TEST_DISTRO_VERSION:-34}
75-
FEDORA_CLOUDIMG_REL=${FEDORA_CLOUDIMG_REL:-1.2}
74+
TEST_DISTRO_VERSION=${TEST_DISTRO_VERSION:-36}
75+
FEDORA_CLOUDIMG_REL=${FEDORA_CLOUDIMG_REL:-1.5}
7676
IMAGE_URL=${IMAGE_URL:-https://download.fedoraproject.org/pub/fedora/linux/releases/${TEST_DISTRO_VERSION}/Cloud/x86_64/images}
7777
CLOUD_IMAGE=${CLOUD_IMAGE:-Fedora-Cloud-Base-${TEST_DISTRO_VERSION}-${FEDORA_CLOUDIMG_REL}.x86_64.raw.xz}
7878
;;
@@ -371,10 +371,14 @@ function init_kubernetes_cluster() (
371371
vm_id=0
372372
pids=""
373373
IPS=$(print_ips)
374-
# in Fedora-3[123] case, add a flag to kernel cmdline and reboot to disable cgroups v2
375-
if [[ "$TEST_DISTRO" = "fedora" && "$TEST_DISTRO_VERSION" =~ 3[1-4] ]]; then
374+
# in Fedora-3[123...] case, add a flag to kernel cmdline and reboot to disable cgroups v2
375+
if [[ "$TEST_DISTRO" = "fedora" && "$TEST_DISTRO_VERSION" =~ 3[1-9] ]]; then
376376
SYSTEMD_UNIFIED_CGROUP_HIERARCHY=systemd.unified_cgroup_hierarchy
377377
for ip in ${IPS}; do
378+
# Disable zswap, permanently (https://fedoraproject.org/wiki/Changes/SwapOnZRAM#How_can_it_be_disabled?).
379+
ssh $SSH_ARGS ${CLOUD_USER}@${ip} "sudo dnf -q -y remove zram-generator-defaults"
380+
ssh $SSH_ARGS ${CLOUD_USER}@${ip} "sudo sed -i -e '/swap/d' /etc/fstab"
381+
378382
GRUB_BFS=$(ssh $SSH_ARGS ${CLOUD_USER}@${ip} "grep ^GRUB_ENABLE_BLSCFG /etc/default/grub | sed -e \"s;\(GRUB_ENABLE_BLSCFG=\)\(.*\);\2;g\"")
379383
# If BFS enabled use 'grubby' to modify kernel parameters
380384
if [ $GRUB_BFS = "true" ]; then

0 commit comments

Comments
 (0)