From 00c46ec5f5d1e2701058cb4957ad12650e3b320c Mon Sep 17 00:00:00 2001 From: Michael Nguyen Date: Mon, 8 May 2023 12:14:46 -0400 Subject: [PATCH] kola: add openvswitch in hugetlbfs group test openvswitch %pre scriptlet adds the openvswitch user to the hugetblfs group. Since %pre runs without `set -e` by default the failures are ignored resulting in worker nodes that do not come online during a cluster install. This seems to be happening on only RHCOS based on RHEL 9.2 on ppc64le. These errors are showing up during the rpm-ostree compose: 14:30:05 openvswitch3.1.prein: usermod.rpmostreesave: /etc/passwd.6: lock file already used 14:30:05 openvswitch3.1.prein: usermod.rpmostreesave: cannot lock /etc/passwd; try again later. `: xref: https://github.com/coreos/fedora-coreos-tracker/issues/1250 --- tests/kola/files/openvswitch-hugetlbfs-groups | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tests/kola/files/openvswitch-hugetlbfs-groups diff --git a/tests/kola/files/openvswitch-hugetlbfs-groups b/tests/kola/files/openvswitch-hugetlbfs-groups new file mode 100755 index 00000000..cf7c395b --- /dev/null +++ b/tests/kola/files/openvswitch-hugetlbfs-groups @@ -0,0 +1,13 @@ +#!/bin/bash +## kola: +## exclusive: false +## architectures: "x86_64 ppc64le" +## description: Verify openvswitch user is in the hugetlbfs group. + +set -xeuo pipefail + +. $KOLA_EXT_DATA/commonlib.sh + +if ! sudo getent group hugetlbfs | grep openvswitch; then + fatal "openvswitch user is not in hugetlbfs group" +fi