Skip to content

Commit

Permalink
kola: add openvswitch in hugetlbfs group test
Browse files Browse the repository at this point in the history
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: coreos/fedora-coreos-tracker#1250
  • Loading branch information
mike-nguyen committed May 8, 2023
1 parent c122421 commit b0b73c9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/kola/files/openvswitch-hugetlbfs-groups
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b0b73c9

Please sign in to comment.