Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing support for OpenSUSE Tumbleweed #7143

Merged
merged 3 commits into from
Dec 3, 2024
Merged
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
2 changes: 1 addition & 1 deletion images/opensuse-tumbleweed
35 changes: 30 additions & 5 deletions images/scripts/opensuse-tumbleweed.setup
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ printf 'dictcheck = 0\nminlen = 6\n' >> /etc/security/pwquality.conf
COCKPIT_DEPS="\
criu \
libcriu2 \
crypto-policies-scripts \
Copy link
Member

Choose a reason for hiding this comment

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

Please add "... on openshift-tumbleweed" to the "fix missing dependencies" commit.

device-mapper \
glibc-locale \
glib-networking \
json-glib \
kexec-tools \
krb5 \
lastlog2 \
libssh2-1 \
libvirt-daemon-config-network \
libvirt-daemon-driver-qemu \
libvirt-daemon-driver-network \
Expand All @@ -38,8 +42,10 @@ libvirt-dbus \
openssl \
PackageKit \
pcp \
pcp-devel \
pkexec \
polkit \
python3-pip \
python3-pcp \
qemu-block-curl \
qemu-chardev-spice \
qemu-hw-usb-host \
Expand All @@ -51,26 +57,33 @@ virt-install \
virtiofsd \
udisks2 \
libudisks2-0_lvm2 \
libudisks2-0_btrfs \
setroubleshoot-server \
wtmpdb \
"

TEST_PACKAGES="\
acl \
ansible-core \
bind-utils \
certmonger \
clevis-luks \
cryptsetup \
firewalld \
gdb \
gettext \
gvfs \
krb5-client \
libvirt-daemon-driver-storage-iscsi \
libvirt-daemon-driver-storage-iscsi-direct \
libvirt-daemon-driver-storage-logical \
libxml2-tools \
ltrace \
nginx \
nfs-kernel-server \
patterns-base-fips \
podman \
redis \
valkey \
socat \
strace \
targetcli \
Expand All @@ -79,11 +92,20 @@ bzip2 \
rpm-build \
rpm-config-SUSE \
psmisc \
ntfs-3g \
ntfsprogs \
multipath-tools \
systemd-coredump \
kdump \
"

NETWORK_PACKAGES="\
sssd \
sssd-dbus \
sssd-proxy \
sssd-tools \
sssd-ipa \
wireguard-tools \
"

# avoid NM-wait-online hanging on disconnected interfaces
Expand All @@ -98,12 +120,15 @@ if [ "${IMAGE%-i386}" != "$IMAGE" ]; then
fi

zypper dup -y
# kernel-default has more kernel modules that are required for testing

# HACK: There are a number of kernel modules needed for testing, for
# instance scsi_debug which is needed for most if not all of the disk
# based tests. Since the cloud image ships a slimmed down set of modules
# We need to install the full set, this is still the same kernel
Comment on lines -101 to +127
Copy link
Member

Choose a reason for hiding this comment

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

This commit says "images: Enable firewalld and precreate /media directory", but does neither of these things. Please change to "images: Document opensuse-tumbleweed kernel change" or similar.

zypper remove -y kernel-default-base
zypper install -y kernel-default

zypper install -y $TEST_PACKAGES $COCKPIT_DEPS $BUILD_PACKAGES $NETWORK_PACKAGES

zypper -n install -y $TEST_PACKAGES $COCKPIT_DEPS $BUILD_PACKAGES $NETWORK_PACKAGES

# Pre-install distribution cockpit packages, for testing cockpit extensions offline and for convenient interactive debugging
zypper install -y cockpit
Expand Down
Loading